• 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
Creating an NSMenuItem with an icon in the dock menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating an NSMenuItem with an icon in the dock menu?


  • Subject: Creating an NSMenuItem with an icon in the dock menu?
  • From: Jonathan Wight <email@hidden>
  • Date: Sat, 08 Feb 2003 21:43:22 -0600

I'm returning an NSMenu from my application delegate's applicationDockMenu
method. I'm trying to give the menu items icons using -[NSMenuItem
setImage:] but no matter what I do no icons show up. Searching the list
archives I noticed someone had problems setting menu icons in a dockling...

Now I notice the DockBrowser sample application can set icons in a for items
in a dock menu - but that's a pure carbon application.

Is there some magic trick to getting icons working in a dock menu in Cocoa?
Or am I going to have to resort to some Cocoa/Carbon hackery?

Cheers.

Jon.
_______________________________________________
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: "Extracting" images from RTF data?
  • Next by Date: Weird problem with array declaration in action
  • Previous by thread: Re: International keyboard input/interpretKeyEvents questions
  • Next by thread: Re: Creating an NSMenuItem with an icon in the dock menu?
  • Index(es):
    • Date
    • Thread