• 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
Re: Cocoa-dev Digest, Vol 5, Issue 430
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 5, Issue 430


  • Subject: Re: Cocoa-dev Digest, Vol 5, Issue 430
  • From: "Daniel zeilMal" <email@hidden>
  • Date: Tue, 18 Mar 2008 15:40:42 -0700

Thanks a lot , James.Actually , I don't want to use carbon . : ( Because I'm
totally a newbie to carbon.But I have no choice to do that .
I have a custom view which need to set into a menuItem . This is not
supported in Tiger.
And when I search the key word "Carbon Menu" in Google , there seems to be
not so much useful reference.
What I'm doing now , is that get the menuRef from cocoa menu nib , draw
Everything I need on that menuItem using carbon with MenuRef.
Then set it back to the menu .
I 'm wondering , is that ok if I am implementing the staff like this ? Since
the example  I found on the net about the carbon menu staff are usually
using the carbon menu nib file instead of cocoa menu nib file.

2008/3/18, James Hober <email@hidden>:
>
> On Mar 18, 2008, at 11:36 AM, email@hidden wrote:
>
> On Mar 18, 2008, at 11:32 AM, cai qin wrote:
>
> I have a cocoa app developed in Tiger . Is it possible that Using a
>
> carbon
>
> menuRef to get App 's mainMenu?
>
>
>
> Why not just use public Carbon API?
>
>
> MenuRef carbonMenuBar = AcquireRootMenu();
>
> ...
>
> error = ReleaseMenu(carbonMenuBar); //clean up
>
> and remember that Carbon menu items are 1-based unlike Cocoa menu items
> that are 0-based.
>
> James
>
> PS This seems like more of a Carbon question than a Cocoa question
>
>
>
>
_______________________________________________

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

References: 
 >Re: Cocoa-dev Digest, Vol 5, Issue 430 (From: James Hober <email@hidden>)

  • Prev by Date: Re: NSTextField value binding (feeling like a newbie)
  • Next by Date: Leaks with savepanel
  • Previous by thread: Re: Cocoa-dev Digest, Vol 5, Issue 430
  • Next by thread: Leaks with savepanel
  • Index(es):
    • Date
    • Thread