• 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: multiple windowcontrollers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >multiple windowcontrollers (From: Koen van der Drift <email@hidden>)
 >Re: multiple windowcontrollers (From: "Louis C. Sacha" <email@hidden>)
 >Re: multiple windowcontrollers (From: Koen van der Drift <email@hidden>)
 >Re: multiple windowcontrollers (From: "Louis C. Sacha" <email@hidden>)
 >Re: multiple windowcontrollers (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: Problem with NSFileHandle?
  • Next by Date: NSConnection delegate methods - shouldMakeNewConnection vs makeNewConnection
  • Previous by thread: Re: multiple windowcontrollers
  • Next by thread: Re: multiple windowcontrollers
  • Index(es):
    • Date
    • Thread