Re: Getting "Unknown class 'someClassName' in nib file" message
Re: Getting "Unknown class 'someClassName' in nib file" message
- Subject: Re: Getting "Unknown class 'someClassName' in nib file" message
- From: Stuart Malin <email@hidden>
- Date: Wed, 13 May 2009 10:43:19 -1000
Thanks Jon for the quick reply. I had already found the culprits -- my
fault: I had two other Nibs that contained objects that were declared
to be of the old class. I found by manually looking in each .xib
file. Thanks for the info about the object outline view in IB -- that
might have been easier than opening the xib files in an editor. I had
tried using the Finder's find files mechanism to locate files in the
project that contained content of the old class name, but for some
reason that didn't work for me. Problem now solved. Onward ho. Thanks
again.
On May 13, 2009, at 10:30 AM, Jonathan Hess wrote:
Hey Stuart -
Try putting a breakpoint on NSLog, and then run your app. When you
hit the breakpoint, look at the backtrace. It will give you an idea
of which NIB is being loaded. After you figure that out, open the
NIB/XIB file in IB and in the object outline view make sure the
class name table column is showing by right clicking on the table
column headers. After this, filter using the search field for the
missing class name.
If there isn't one, then you should file a bug and attach the
Interface Builder document that is issuing the log message.
Jon Hess
On May 13, 2009, at 1:15 PM, Stuart Malin wrote:
I have tried both Google and searching the archives regarding the
problem with the subject message, but can only find cases where
someone has a class and didn't include it. My case is different: in
my project, I renamed a class. I have made appropriate changes in
both Xcode and IB for this (dragging the new .h file to the Nib's
document window in IB and redeclaring the class name of the
affected object in the inspector). Yet I receive the subject
message in the run log. Actually, receive it multiple times. I have
used the Find In Project function of Xcode to ensure I have no
lingering references to the old class name. I have even examined
the Nib's .xib file and searched for the old class name, and don't
find it. Somewhere a reference to the old name is lingering... how
might I find it?_______________________________________________
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
_______________________________________________
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