• 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
setting Custom view into menuItem in Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setting Custom view into menuItem in Tiger


  • Subject: setting Custom view into menuItem in Tiger
  • From: "cai qin" <email@hidden>
  • Date: Thu, 14 Feb 2008 12:58:41 -0800

Hi guys
I am stuck in some problems about setting a custom view into menuItem in
Tiger. I know that there is a method called setView in menuItem in leopard
and it's easy to use.
But what I need is to set a custom view into menuItem in Tiger.
According to the documents latest version , NSMenu is responsible for
drawing the things , and the menuItem just encapsulates the information that
NSMenu need.
Then I find another class , NSMenuView ,that's really something I want . But
the note disappointed me again .
"NSMenuView is deprecated and is no longer used to draw menus. Calling its
methods will not affect the appearance of your menus."

Now I have no idea , even the direction to the solution .
Who's responsible for drawing the menu? NSMenu seems not to have some
drawing method.
If I want to do what I want , is that mean I have to cast my custom View to
Carbon HIView , then embed this View into menuItem ?
I 'm not familiar with the carbon things . Can anyone give me some
directions on How to setting custom view into menuItem in Tiger? or where 's
point I can get into of the NSMenu drawing method?
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: setting Custom view into menuItem in Tiger
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Re: In-loop releasing of objects does not free memory?
  • Next by Date: Re: In-loop releasing of objects does not free memory?
  • Previous by thread: Re: Obj-C server and signal handling
  • Next by thread: Re: setting Custom view into menuItem in Tiger
  • Index(es):
    • Date
    • Thread