• 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
[Leopard] Spotlight/Help-like menu item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Leopard] Spotlight/Help-like menu item


  • Subject: [Leopard] Spotlight/Help-like menu item
  • From: Pierre Bernard <email@hidden>
  • Date: Sat, 26 Jan 2008 23:09:41 +0100

Hi!

I would like to create a custom menu item much like the search item used in Leopard's Help or Spotlight menus.

I thought this ought to be simple under Leopard, as it is now possible to add an arbitrary view to a menu item. This however only gets me 80% of the way and I am not even sure a working solution lies in that direction. The problem is that the custom view does not cover all of the menu item. There remains a border above and below of my view.

- Is there a way to stretch my view over those borders?
- Where does the menu do its drawing? NSMenuItem is neither a view nor a cell. I believe the custom view takes NSMenuItemCell out of the loop.
- What was the pre-Leopard way of doing this? I remember something about going down to Carbon, but can't find much information on the web.


Best,
Pierre

---
Pierre Bernard
http://www.bernard-web.com/pierre
http://www.houdah.com



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: [Leopard] Spotlight/Help-like menu item
      • From: Ron Fleckner <email@hidden>
    • Re: [Leopard] Spotlight/Help-like menu item
      • From: Jonathon Mah <email@hidden>
  • Prev by Date: Re: Pushing the truth
  • Next by Date: NSNumberFormatter 10.0+ vs. 10.4+
  • Previous by thread: Re: NSViews resizeSubviewsWithOldSize is not called on resize
  • Next by thread: Re: [Leopard] Spotlight/Help-like menu item
  • Index(es):
    • Date
    • Thread