• 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
Re: defaultCenter's addObserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: defaultCenter's addObserver


  • Subject: Re: defaultCenter's addObserver
  • From: j o a r <email@hidden>
  • Date: Tue, 7 Oct 2008 09:16:55 -0700


On Oct 7, 2008, at 8:26 AM, John Love wrote:

So just for whatever, I pass object:nil to addObserver:selector:name:object:. Then, within my selector I test for the type of passed encapsulated object and something(?) doesn't work. My selector gets called for my first new MyDocument. But when I open up a second new MyDocument, the Debugger complains about an invalid aSelector. I don't understand what's going on, so I'm looking for help.


Please provide the exact error from the debugger. My guess would be that you have some sort of memory management error, or that you didn't provide the correct selector (Note that a ":" at the end of a method name is significant, and needs to be included in the selector).

j o a r


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >defaultCenter's addObserver (From: John Love <email@hidden>)

  • Prev by Date: Re: Getting NSTimer to work after an NSThread completes?
  • Next by Date: cross development, missing methods
  • Previous by thread: defaultCenter's addObserver
  • Next by thread: Re: defaultCenter's addObserver
  • Index(es):
    • Date
    • Thread