Re: How to load a sheet in a separate Nib file
Re: How to load a sheet in a separate Nib file
- Subject: Re: How to load a sheet in a separate Nib file
- From: Scott Anguish <email@hidden>
- Date: Wed, 27 Aug 2003 18:45:56 -0400
On Aug 27, 2003, at 5:41 PM, Fei Li wrote:
If anybody have idea about this? I read some articles and document for
using sheet in cocoa, but they all put the sheet in the same nib file
of the main window and use main controller or the controller in the
main nib file to control the element on the sheet.
This isn't sheet specific, just the usual dance for dealing with
multiple nibs.
From your code, you'd already have an object called sheetController
that has been created. In the sheet nib, set the File's Owner to be
the class that sheetController is. Then add an outlet for the sheet to
the SheetController class and connect the sheet to the File's Owner in
IB, and do that outlet. Make sure that you're target actions for
buttons and such also connect to File's Owner and then the target
action.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.