Re: Single instance of properties window
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