• 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
Getting the Window menu item for a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the Window menu item for a window


  • Subject: Getting the Window menu item for a window
  • From: Mark Alldritt <email@hidden>
  • Date: Sat, 13 Nov 2004 09:37:51 -0800

Hi,

Can anyone show me how to get the NSMenuItem instance for the Window menu
item corresponding to a particular window?  I want to add a state indicating
icon to the menu item for some of my windows.

NSApplication's windowsMenu gives me the windows menu, but the items in this
menu  don't appear to be tagged in any useful way and the representedObject
is nil.

Thanks
-Mark

---------------------------------------------------------------------
Mark Alldritt                         Late Night Software Ltd.
Phone: 250-380-1725                   333 Moss Street
FAX:   250-383-3204                   Victoria, B.C.
WEB:   http://www.latenightsw.com/    CANADA  V8V-4M9

 _______________________________________________
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

  • Follow-Ups:
    • Re: Getting the Window menu item for a window
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: crossplatform C++, #ifdef
  • Next by Date: Re: crossplatform C++, #ifdef
  • Previous by thread: sending NSEvent to window
  • Next by thread: Re: Getting the Window menu item for a window
  • Index(es):
    • Date
    • Thread