• 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: Custom sheet question - which variable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom sheet question - which variable?


  • Subject: Re: Custom sheet question - which variable?
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 10 Jan 2010 23:23:09 -0800

On 2010 Jan 10, at 20:25, Jenny M wrote:

> What I'm trying to do is this. I have a main window with a button to say
> "Create New", and I have an NSWindowController class to handle the
> creation/check/storage of that new object.

Learning your way around the documentation takes awhile, but do it whenever you can.  In your Xcode documentation window, in the search field at the top right, type "Sheet Programming Topics".  You'll get a wonderful document which will explain many things you can't figure out by following sample code.

> I have a separate xib file to
> handle that window and object. But I want the main window to open the 'new
> object' window as a sheet (and in fact I need to have cascading sheets of
> different types).

One of the things you will find in that document is that cascading sheets are not supported or desirable.  We had a discussion on an alternative to this, presenting sheets serially, a few days ago.  Read the thread "wait for sheet result" on this page:

http://lists.apple.com/archives/cocoa-dev/2010/Jan/thrd4.html#00366

> Does this seem possible keeping everything in separate
> xibs with separate controllers?

Yes, you can load a window from any xib you want to, or even create one in code, and then attach it to a window as a sheet.

_______________________________________________

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

References: 
 >Custom sheet question - which variable? (From: Jenny M <email@hidden>)
 >Re: Custom sheet question - which variable? (From: "Hank Heijink (Mailinglists)" <email@hidden>)
 >Re: Custom sheet question - which variable? (From: Jenny M <email@hidden>)

  • Prev by Date: Need some help with custom views . . .
  • Next by Date: Re: Custom sheet question - which variable?
  • Previous by thread: Re: Custom sheet question - which variable?
  • Next by thread: Re: Custom sheet question - which variable?
  • Index(es):
    • Date
    • Thread