Re: Instantiate custom NSWindow
Re: Instantiate custom NSWindow
- Subject: Re: Instantiate custom NSWindow
- From: mmalc crawford <email@hidden>
- Date: Mon, 24 Sep 2007 12:02:30 -0700
On Sep 24, 2007, at 11:41 AM, Jere Gmail wrote:
the window is populated in Interface builder. And I have an outlet to
that window, but I wanna be able to display the window twice.
You're almost certainly approaching this the "wrong" way.
Cocoa has different design patterns than those you're probably used to
-- as Fritz indicated, for example it's unusual to subclass NSWindow
unless you want to create a custom look for it.
I would suggest reviewing <http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/index.html
>.
If you actually want to display two windows, then consider factoring
the UI into a separate nib file -- see <http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CoreAppArchitecture/chapter_7_section_8.html
> (from the reference above) and <http://developer.apple.com/documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/chapter_3_section_1.html
>.
mmalc
_______________________________________________
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