Re: What are the finer points to programatically loading a view from a NIB and attaching to the default window in MainMenu.xib?
Re: What are the finer points to programatically loading a view from a NIB and attaching to the default window in MainMenu.xib?
- Subject: Re: What are the finer points to programatically loading a view from a NIB and attaching to the default window in MainMenu.xib?
- From: Kyle Sluder <email@hidden>
- Date: Mon, 20 Jul 2009 21:42:40 -0700
On Jul 20, 2009, at 9:28 PM, "Michael A. Crawford" <email@hidden
> wrote:
The NIB file is loaded in that I was able set a breakpoint on -
[awakeFromNib] for the NDView class. Yet, I don't see any output.
If I remove the controller and use IB to add the NDView to the
window as a custom-view. I can see the view and works fine. I've
tried both the -[setContent] -[addSubview] calls.
You're in the debugger; that's an important first step. But you need
to verify that your window outlet isn't nil (as well as the view
controller's view). If all else fails, remember that you can evaluate
expressions and invoke arbitrary statements in the gdb console.
--Kyle Sluder
_______________________________________________
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