How to manage creation of an unknown number of windows?
How to manage creation of an unknown number of windows?
- Subject: How to manage creation of an unknown number of windows?
- From: Rui Pacheco <email@hidden>
- Date: Mon, 5 Oct 2009 15:20:58 +0100
Hi,
I've a class that extends NSWindowController and that class lists an unknown
number of entries. Double clicking on an entry will open a window where it
will be possible to interact with the real world object that entry
represents.
I plan to make the editing window extends NSDocument but I am still at a
loss on something: how do I make sure manage the creation of an unknown
number of windows on my app?
I'm thinking about creating an instance of NSDictionary and saving each
newly created window on it, removing from the dictionary when the window is
closed. What would be the best way to manage an unknown number of windows?
--
Best regards,
Rui Pacheco
_______________________________________________
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