• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Posting Notification Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Drawing in front of a NSMovieView
  • Next by Date: NSCell, -mouseDownFlags, and NSPeriodicMask
  • Previous by thread: Re: Drawing in front of a NSMovieView
  • Next by thread: Re: Posting Notification Question
  • Index(es):
    • Date
    • Thread