Coder Social home page Coder Social logo

Comments (2)

schriftgestalt avatar schriftgestalt commented on July 18, 2024 1

You have to do GSCallbackHandler.sharedHandler.reporterInstances
(Calling something directly on GSCallbackHandler means that is a class method (it has a + at the beginning of method name). But those class methods can’t store stuff as there are no instance variables)
sharedHandler is a singleton

from reporter-toggler.

Mark2Mark avatar Mark2Mark commented on July 18, 2024

Great. Thank you so much!

Had to remove the dot syntax though to [[GSCallbackHandler sharedHandler] reporterInstances] and the dot didn’t work.
(I usually try to go for dots whenever possible)

Hmmm, the compiler is silent, but the console logs -[GSCallbackHandler reporterInstances]: unrecognized selector sent to instance. Still no success.

@schriftgestalt one more hint? It’s breaking my head. This looks good to me, but the console still spits that error from above. I really don’t understand. The compiler is happy about the reporterInstances.

GSCallbackHandler *handler = [GSCallbackHandler sharedHandler];
MGOrderedDictionary *allReporters = handler.reporterInstances;

from reporter-toggler.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.