• 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
setState for NSMenuItems in Dock menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setState for NSMenuItems in Dock menu


  • Subject: setState for NSMenuItems in Dock menu
  • From: email@hidden (Sebastian Krauß)
  • Date: Mon, 25 Feb 2002 01:29:54 +0100

Hi everybody,

I tried getting the little checkmarks for certain menu items in my Dock menu to appear as I have no problem to make them appear in usual menus. The menu items concerned are in a submenu.

The Dock menu is created dynamically (speak, not statically in IB), I tried [myMenuItem setOnStateImage:[NSImage imageNamed:@"NSMenuRadio"]] before setting the state to NSOnState, I tried allocating the Menu I return with the NSMenu zone and without...

No success. As I said, I'm not doing this differently than in other code I wrote where it works. Every key window has one in the Dock menu, so it is possible.

Any ideas?

Sebastian
---
"Most people put some sort of quote at the end of their signature.
I don't."
-- Liam Downing
_______________________________________________
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.

  • Prev by Date: Re: Pulling NSURL off the pasteboard
  • Next by Date: Mounting Remote Volumes
  • Previous by thread: Re: Pulling NSURL off the pasteboard
  • Next by thread: Mounting Remote Volumes
  • Index(es):
    • Date
    • Thread