Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
window controller question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

window controller question



Hello all,

trying to clarify another newbie question. I have an app that has multiple windows per document. I'd like to be able to open and close those windows independently from each-other. I understand that I should use NSWindowControllers. So what I think I should be doing is this:

- when new document opens I put its window controller into an iVar so that I can use it as a reference when the user selects a menu to open the main window.

- then I instantiate one new window controller for each additional window, and put each of those into an iVar to be used in a method that opens the corresponding window, like an IBAction hooked up to menu item.

Does that make sense? Is that a sensible pattern to use?

Thanks,

Rainer_______________________________________________

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.