Top "Nsnotifications" questions

NSNotification objects encapsulate information so that it can be broadcast to other objects by an NSNotificationCenter object.

How to pass data using NotificationCenter in swift 3.0 and NSNotificationCenter in swift 2.0?

I'm implementing socket.io in my swift ios app. Currently on several panels I'm listening to the server and wait …

ios swift swift3 nsnotificationcenter nsnotifications
How to pass object with NSNotificationCenter

I am trying to pass an object from my app delegate to a notification receiver in another class. I want …

objective-c swift cocoa-touch nsnotificationcenter nsnotifications
Objective-C: Where to remove observer for NSNotification?

I have an objective C class. In it, I created a init method and set up a NSNotification in it //…

objective-c ios nsnotifications
Where to remove observer for NSNotification in Swift?

Where should I remove the observer for NSNotification in Swift, since viewDidUnload and dealloc() are unavailable?

ios swift nsnotifications
How do you create custom notifications in Swift 3?

In Objective-C, a custom notification is just a plain NSString, but it's not obvious in the WWDC version of Swift 3 …

swift nsnotificationcenter nsnotifications nsnotification swift3
Text change notification for an NSTextField

I would like to use the code from the answer to this question: How to observe the value of an …

cocoa observer-pattern nstextfield nsnotifications
How to stop the Observer in NSNotification to called twice?

I have an observer of NSNotification which is called twice. I do not know what to do with it. I …

iphone objective-c ios nsnotifications
How to avoid adding multiple NSNotification observer?

Right now the API doesn't seem to provide a way to detect if an observer has already been added for …

ios cocoa nsnotifications
Why is my NSNotification its observer called multiple times?

Within an App I make use of several viewcontrollers. On one viewcontroller an observer is initialized as follows: [[NSNotificationCenter defaultCenter] …

ios iphone uiviewcontroller nsnotificationcenter nsnotifications
KVO vs NSNotification vs protocol/delegates?

I have some idea of which to use when but the exact usage is still not clear to me. Can …

iphone ios protocols key-value-observing nsnotifications