I have multiple instances of NSWindowController, who is registering for a notification to listen whenever edit happens.
Now when I edit something from one instance of windowcontroller, the notification gets posted and all the instances of that NSWindowcontroller listen to that notification,but I want only the instance which has updated its details to listen.
How can I achieve that?
As mentioned in the documentation for
[NSNotificationCenter addObserver:selector:name:object:]method for parameterobject:So just pass
selfas object.E.G.
Registering for notifications:
Posting notification: