• 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
_NSGetCarbonMenu useage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

_NSGetCarbonMenu useage


  • Subject: _NSGetCarbonMenu useage
  • From: Luc Vandal <email@hidden>
  • Date: Wed, 04 May 2005 16:20:07 -0400

Hi!

I'm trying to use _NSGetCarbonMenu but all I get is a crash. I'm trying to use the function from my window controller class. Here's what I added:

#import <Carbon/Carbon.h>

extern MenuRef _NSGetCarbonMenu( NSMenu *menu);

...
...

- (void)SomeFunction
{
NSMenu* menu = [NSApp menu];
MenuRef mr = _NSGetCarbonMenu( menu ); //crashes here
}

Have I forgot something?

Thanks!

Luc
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: _NSGetCarbonMenu useage
      • From: Rosyna <email@hidden>
    • Re: _NSGetCarbonMenu useage
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: NSTextView - text wrapping
  • Next by Date: Re: Carbon menu with Cocoa?
  • Previous by thread: Re: NSTextView - text wrapping
  • Next by thread: Re: _NSGetCarbonMenu useage
  • Index(es):
    • Date
    • Thread