Thread with 6 posts
jump to expanded postit extremely annoys me that you can have event-driven systems where you trigger an event and set up the event handler after the fact, hoping the event hasnāt actually happened yet
yes multiple early iPhone OS apps do this, why do you ask,
@hikari ā¦in the same runloop iteration, or a subsequent one?
@saagar same runloop iteration⦠usually. ah, are you going to tell me thereās some guarantee about this? :)
@saagar something Iām not sure about is how NSNotificationCenter interacts with run loops.
@hikari I havenāt looked at this closely but I think the default is enqueuing but IIRC NSNotificationQueue lets you bypass that
@saagar ahh okay. touchHLE currently has an ad-hoc notification queue inside the āmovie playerā, simply because it never worked when I posted the notification immediately, but maybe I actually should put that queueing inside NSNotificationCenter itselfā¦