Re: NSDistributedNotificationCenter
Re: NSDistributedNotificationCenter
- Subject: Re: NSDistributedNotificationCenter
- From: April Gendill <email@hidden>
- Date: Tue, 16 Dec 2003 21:39:58 -0700
On Dec 16, 2003, at 9:29 PM, Nick Zitzmann wrote:
On Dec 16, 2003, at 7:35 PM, April Gendill wrote:
[[NSDistributedNotificationCenter defaultCenter]
addObserver:[NSWorkspace sharedWorkspace]
selector:@selector([self addItemToTable:]) name:nil object:nil
suspensionBehavior:nil];
Try this instead:
[[NSDistributedNotificationCenter defaultCenter] addObserver:self
selector:@selector(addItemToTable:) name:nil object:nil
suspensionBehavior:nil];
All this does is set the observer to watch the application running, I
tried it earlier. The use of the shared workspace was intentional. I am
trying to watch more than my own app, I want to be able to react to
other applications behavior. So I have to ask again, how if the
observer is NOT the in the class running, do I call a method in the
running class?
Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request
"That's a funny thing to promise. Well, you can't never let anything
happen to him [Nemo]; then, nothing would ever happen to him." - Dory,
from the movie "Finding Nemo"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.