Re: Why would NSViewController loadView fail?
Re: Why would NSViewController loadView fail?
- Subject: Re: Why would NSViewController loadView fail?
- From: Eric Gorr <email@hidden>
- Date: Mon, 31 Aug 2009 16:56:47 -0400
On Aug 31, 2009, at 4:54 PM, Jonathan Hess wrote:
On Aug 28, 2009, at 1:36 PM, Eric Gorr wrote:
I am pretty sure I've got my .xib setup correctly, but when I call
loadView on my View Controller, my application crashes.
Unfortunately, I am not getting any useful information out of the
crash. The only thing I appear to have is a stack trace, but I am
not sure what it is telling me.
#0 0x906e9911 in __CFBasicHashDeallocate
#1 0x906d1bab in _CFRelease
#2 0x906fe5bd in _CFAutoreleasePoolPop
#3 0x92c1de62 in NSPopAutoreleasePool
#4 0x96811c95 in -[NSNib instantiateNibWithExternalNameTable:]
#5 0x96811968 in -[NSNib instantiateNibWithOwner:topLevelObjects:]
#6 0x96810de1 in -[NSViewController loadView]
Anyone have an idea?
-[NSViewController loadView] is a method that's meant to be
overridden instead of directly invoked. Does the crash reproduce if
you call -[NSViewController view] instead?
Yes.
I actually modified the code to call load view directly. The original
code did as you suggested....and, yes, it crashes.
_______________________________________________
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