Re: Anyone recognise this crash in loadNib?
Re: Anyone recognise this crash in loadNib?
- Subject: Re: Anyone recognise this crash in loadNib?
- From: "Blain Hamon" <email@hidden>
- Date: Sun, 8 Jul 2007 20:28:48 -0700
Long time listener, first time caller.
Does this look familiar to anyone? With none of my code in the
backtrace, it is hard to know where to start.
I couldn't recreate it, and yeah, need more input. Especially on
whether or not you've got the build settings for debug or release.
But since loadNibFile:externalNameTable:withZone: doesn't directly
address the owner, the first thing to do is check your strings. My
wager is that it tried to send a message to what it thought was an
NSString, but found a char * instead.
Check your delegates and NSDocument subclasses for a missing @ in
front of a const NSString in the windowNibName method.
Because otherwise, there's no crash in the middle of your functions.
That means it's some callback is giving a bad answer. WindowNibName
and NSString/char * is one example. (Oh! And windowTitle) But I
suppose if you have any initWithCoder code, make sure they're sending
back a valid id.
If there's no missing @, NSLog any callback you have, printing out
the result it's going to return before it returns. That way, if it
crashes, you know the last callback used, or better yet, it'll crash
at that NSLog, leaving a perfect trail.
Hope this helps.
--Blain.
_______________________________________________
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