Re: Using a nib's window for a sheet?
Re: Using a nib's window for a sheet?
- Subject: Re: Using a nib's window for a sheet?
- From: "Erik M. Buck" <email@hidden>
- Date: Wed, 5 Dec 2001 11:10:28 -0600
- Organization: EMB & Assocites Inc.
>
[NSBundle loadNibNamed:@"SheetWindow" owner:myWindowOwner];
>
The myWinowOwner object should have an outlet for the window inside the nib.
In Interface Builder, connect the File's Owner's outlet to the window. When
the nib is loaded, the outlet in myWindowOwner will be set to the window as
specified in Interface Builder. Then just use the outlet to access the
window.