Re: Instantiate custom NSWindow
Re: Instantiate custom NSWindow
- Subject: Re: Instantiate custom NSWindow
- From: "Jere Gmail" <email@hidden>
- Date: Mon, 24 Sep 2007 21:24:23 +0200
Thanks, I'll read it.
But, what's the meaning of "Release when closed" in Interface Builder
if I can not create another instance of this window?
By the way, is there any function that is called when the window is
displayed? When I call the runmodal I want some fields on this window
to update with some global variables but as far as I have searched
have only found awakefromnib but not onFocus or something like this.
On 9/24/07, mmalc crawford <email@hidden> wrote:
>
> 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
>
>
--
http://zon7blog.blogspot.com/
And again we fall.
_______________________________________________
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