Re: Get specified window from nib
Re: Get specified window from nib
- Subject: Re: Get specified window from nib
- From: Fosse <email@hidden>
- Date: Tue, 12 Aug 2008 18:15:39 +0800
Thanks!.. I tried and it can get all objects..
But It's strange that I don't find APIs of NSWindow to get its name which is
shown in the Interfact Builder.. Those objects have different name in the IB
and I want to get one specific window from the top object array... Is there
other methods to get it?
Thanks!
On Mon, Aug 11, 2008 at 10:07 AM, Graham Perks <email@hidden> wrote:
> On Aug 10, 2008, at 9:01 PM, Fosse wrote:
>
> I have one nib containing more than ten dialogs and want to get the
>> specified window after nib is loading..
>>
>
> Perhaps NSNib's instantiateNibWithOwner:(id)owner topLevelObjects:(NSArray
> **)topLevelObjects ? You'll get an array of top level objects, which will
> presumably contain your dialogs... If it were me I'd just join them up in
> IB. You only need to do it once.
>
> Graham.
>
_______________________________________________
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