• 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: Problem Instantiating a Nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem Instantiating a Nib


  • Subject: Re: Problem Instantiating a Nib
  • From: Fritz Anderson <email@hidden>
  • Date: Tue, 11 May 2004 11:55:34 -0500

My experience with "selector not recognized" is that it indicates one of two things:

1. I'm explicitly sending a message to an object that doesn't implement the message. The selector may be misspelled, or missing a colon, or simply drawn from my fevered imagination. I can catch this at, or near enough to, the error by setting a breakpoint at "-[NSException raise]".

That your application seems to be throwing these errors in the middle of framework code, and is continuing execution having merely aborted the NIB load, suggests that this isn't your problem.

2. The other cause is that I've released an object prematurely, and its pointer value has been reused for another object, which happens not to implement the selector. Check for an unretained autoreleased object (for example). NSZombieEnabled (do a Google search and look in NSDebug.h) will help; it's a memory-management diagnostic that catches exactly this sort of thing.

-- F

On 9 May 2004, at 9:24 PM, Bruce Truax wrote:

At the time I execute the loadNibNamed method I can see in the debugger that
the +initialize function is executed and the immediately after this function
is executed I get the following two messages:

2004-05-09 22:22:19.373 AccosX[4077] *** -[NSConstantString count]: selector
not recognized
2004-05-09 22:22:19.378 AccosX[4077] *** -[NSConstantString count]: selector
not recognized

And the awakeFromNib method is never executed.

--
Fritz Anderson
Consulting Programmer
http://resume.manoverboard.org/
_______________________________________________
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.


  • Follow-Ups:
    • Re: Problem Instantiating a Nib
      • From: Bruce Truax <email@hidden>
References: 
 >Problem Instantiating a Nib (From: Bruce Truax <email@hidden>)

  • Prev by Date: Re: Distinguishing between table row/column double click?
  • Next by Date: Re: Distinguishing between table row/column double click?
  • Previous by thread: Problem Instantiating a Nib
  • Next by thread: Re: Problem Instantiating a Nib
  • Index(es):
    • Date
    • Thread