• 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
Exception raised during posting of notification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exception raised during posting of notification


  • Subject: Exception raised during posting of notification
  • From: Andrew Shamel <email@hidden>
  • Date: Sun, 29 May 2005 23:12:03 -0400

I am receiving an exception when I try to post a notification in the following code:

[[NSNotificationCenter defaultCenter] postNotificationName: [aSkillName stringByAppendingString:@" Modifier"] object:nil userInfo: [NSDictionary dictionaryWithObject:array forKey:@"Modifier Array"]];

The notification does not even get to the intended objects (the NSLog () at the beginning of the method does not get printed) but instead I get an exception that looks like this:

2005-05-28 20:04:24.338 Philo[5877] *** -[NSCFArray postSkillModifier:]: selector not recognized [self = 0x3c68b0]
2005-05-28 20:04:24.339 Philo[5877] Exception raised during posting of notification. Ignored. exception: *** -[NSCFArray postSkillModifier:]: selector not recognized [self = 0x3c68b0]


The objects that are registered to observe for this notification are not Arrays, and have the following code to register themselves with the NSNotificationCenter:

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(postSkillModifier:) name:[[classSkillNamesArray objectAtIndex:g] stringByAppendingString:@" Modifier"] object:nil];

I am totally at a loss as to why the notifications are not making it to the intended objects (the ones that registered for them) but are being sent to mysterious Arrays.

Thank you so much for any help!

Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Exception raised during posting of notification
      • From: j o a r <email@hidden>
  • Prev by Date: Re: NSTextView synchronization ...
  • Next by Date: Re: mainbundle and frameworks
  • Previous by thread: Re: NSTextView synchronization ...
  • Next by thread: Re: Exception raised during posting of notification
  • Index(es):
    • Date
    • Thread