• 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: Turning NSMenuItem into separator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turning NSMenuItem into separator


  • Subject: Re: Turning NSMenuItem into separator
  • From: Andy Lee <email@hidden>
  • Date: Fri, 30 Sep 2005 01:48:13 -0400

- (BOOL)menu:(NSMenu *)menu updateItem:(NSMenuItem *)item atIndex: (int)index shouldCancel:(BOOL)shouldCancel
- (int)numberOfItemsInMenu:(NSMenu *)menu

Alternatively, you could try organizing your app so that you construct the menu ahead of time, not by using these delegate methods, which don't get called until the menu is about to be displayed. This may not be practical for your particular application, but if you can do it this way, you'll know you're doing everything by the book.


--Andy

_______________________________________________
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: Turning NSMenuItem into separator
      • From: Thom McGrath <email@hidden>
References: 
 >Turning NSMenuItem into separator (From: Thom McGrath <email@hidden>)
 >Re: Turning NSMenuItem into separator (From: Andy Lee <email@hidden>)

  • Prev by Date: Still can't get auth to work correctly.
  • Next by Date: NSPersistentDocument Tutorial - Crash
  • Previous by thread: Re: Turning NSMenuItem into separator
  • Next by thread: Re: Turning NSMenuItem into separator
  • Index(es):
    • Date
    • Thread