• 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
How to manage creation of an unknown number of windows?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to manage creation of an unknown number of windows?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: [MEETING] Toronto Area Cocoa & WebObjects Developer Group - October 13
  • Next by Date: Re: ScreenSaverView gets instantiated several times
  • Previous by thread: [MEETING] Toronto Area Cocoa & WebObjects Developer Group - October 13
  • Next by thread: Re: How to manage creation of an unknown number of windows?
  • Index(es):
    • Date
    • Thread