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.
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to