Re: multiple windowcontrollers
Re: multiple windowcontrollers
- Subject: Re: multiple windowcontrollers
- From: "Louis C. Sacha" <email@hidden>
- Date: Thu, 24 Jun 2004 22:32:01 -0700
Hello...
I would go with making the window controller an instance variable in
the document class. A user might want to use the menu item to bring
the info window to the front when it is already open, but concealed
behind other documents/windows.
As Mike suggested, you can check if the window controller exists in
the action method (and create one if necessary), and then call
showWindow on the window controller to show the info window or bring
it to the front.
Louis
This works fine, thanks. However, one document can now open more
than one info windows. I can think of 2 solutions, either dim the
menuitem if the info panel is already open, or make the
windowcontroller an ivar of MyDocument, and check if it already
exists in the action method. What would be the more logical approach?
thanks,
- Koen.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.