• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to load a sheet in a separate Nib file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: How to load a sheet in a separate Nib file
      • From: Fei Li <email@hidden>
References: 
 >How to load a sheet in a separate Nib file (From: Fei Li <email@hidden>)

  • Prev by Date: Re: Notification of Front Process Changed ?
  • Next by Date: Limiting a float
  • Previous by thread: How to load a sheet in a separate Nib file
  • Next by thread: Re: How to load a sheet in a separate Nib file
  • Index(es):
    • Date
    • Thread