• 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: Why would NSViewController loadView fail?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Why would NSViewController loadView fail? (From: Eric Gorr <email@hidden>)
 >Re: Why would NSViewController loadView fail? (From: Jonathan Hess <email@hidden>)

  • Prev by Date: Re: Why would NSViewController loadView fail?
  • Next by Date: Re: Why would NSViewController loadView fail?
  • Previous by thread: Re: Why would NSViewController loadView fail?
  • Next by thread: libcrypto on Snow Leopard
  • Index(es):
    • Date
    • Thread