• 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: Question about docs / window controllers...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about docs / window controllers...


  • Subject: Re: Question about docs / window controllers...
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 28 Nov 2012 09:50:19 -0800

On Nov 28, 2012, at 9:22 AM, Randy Widell <email@hidden> wrote:

> What are the best practices concerning connecting documents and window controllers?
>
> I understand that when I pop up a window related to a document, I need to add the window controller to the document with addWindowController:.
>
> One thing I am not clear on is how to handle a modal sheet in within that window.
>
> So, imagine something like the Mail where you open the settings window and adding an account pops up a modal sheet attached to the settings window.  I have a similar setup where the modal sheet needs access to the document.
>
> Adding that modal sheet to the document's window controller list and removing it when the sheet ends seems to work fine.  I was just wondering if there are consequences I am not seeing.

This isn't a good idea, nor is it necessary. Just display the sheet. Consider whether you even need to bother giving it its own dedicated window controller.

--Kyle Sluder
_______________________________________________

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: 
 >Question about docs / window controllers... (From: Randy Widell <email@hidden>)

  • Prev by Date: Question about docs / window controllers...
  • Next by Date: Re: Question about docs / window controllers...
  • Previous by thread: Question about docs / window controllers...
  • Next by thread: Re: Question about docs / window controllers...
  • Index(es):
    • Date
    • Thread