Re: awakeFromNib Called Twice
Re: awakeFromNib Called Twice
- Subject: Re: awakeFromNib Called Twice
- From: Kyle Sluder <email@hidden>
- Date: Thu, 27 Jan 2011 17:25:56 -0800
On Thu, Jan 27, 2011 at 5:10 PM, Bruce Cresanta <email@hidden> wrote:
> I have an NSDocument instance in my IB! It was the only way I could hook up a connection to a controlView for the window that gets created for the document.
>
> Do you know a way to programmatically retrieve the controlView for the window that gets created for the document?
> This would enable me to forget IB altogether, which is not a problem because I'm using all custom controls written from scratch.
The correct answer is to learn how nibs work and use them correctly.
Re-read the Document Based Applications Overview:
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Documents/Documents.html
Do not avoid IB. It is not "simpler." It does not get you "under the
hood." Knowing how IB works is essential to being a competent Cocoa
developer.
--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