• 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: Single instance of properties window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Single instance of properties window


  • Subject: Re: Single instance of properties window
  • From: Sherm Pendley <email@hidden>
  • Date: Mon, 3 Oct 2005 14:19:35 -0400

On Oct 3, 2005, at 1:59 PM, Derrick Bass wrote:

But wouldn't that mean I'd have only one properties window for the entire app?

Yes - I thought that's what you wanted. Sorry.

That's not what I'm after. I want the user to be able to open one properties window for each document.

If you don't want a new window each time your "show info" action method, don't create one. ;-)


Just call [self windowControllers] in your "show info" method and look in the returned array for an instance of your properties controller. If there's one there already, bring it to the front instead of creating a new one.

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Single instance of properties window (From: Derrick Bass <email@hidden>)
 >Re: Single instance of properties window (From: Sherm Pendley <email@hidden>)
 >Re: Single instance of properties window (From: Derrick Bass <email@hidden>)

  • Prev by Date: Re: Cannot Save Britney Spears
  • Next by Date: Re: Cannot Save Britney Spears
  • Previous by thread: Re: Single instance of properties window
  • Next by thread: Re: Single instance of properties window
  • Index(es):
    • Date
    • Thread