Posting Notification Question
Posting Notification Question
- Subject: Posting Notification Question
- From: Tom Gray <email@hidden>
- Date: Wed, 22 Jan 2003 13:05:14 -0500
Howdy,
I am getting an exception message that I can't debug. I am posting a
notification and getting this exception:
Exception raised during posting of notification. Ignored. exception:
*** -[CDTerminalMgr performSelector:withObject:]: null selector
Here is the code:
[nc postNotificationName:CDT_TMgrRESCmdCompleteMessage object:self];
With:
NSString *CDT_TMgrRESCmdCompleteMessage =
@"CDTerminalMgrRESCommandCompleteMessage";
The really amazing thing is that the Notification does seem to be
getting sent! The object that responds to the notification has: ( in
the init)
[nc addObserver:self selector:@selector(enableButtons:)
name:CDT_TMgrRESCmdCompleteMessage object:nil];
And the code is actually getting called and does get the name of the
notification:
- (void)enableButtons:(NSNotification *)theNotification
{
NSLog(@"enableButtons :%@", [theNotification name]);
So, it seems like everything is working just fine. But, I still get the
exception.
Any ideas?
For what it is worth I have dozens of objects posting all sorts of
notifications and this is the only object and line of code that is
doing this. What have I missed?
Tom Gray
-------------
email@hidden
or
email@hidden
_______________________________________________
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.