• 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
Disabling Menu Items.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disabling Menu Items.


  • Subject: Disabling Menu Items.
  • From: MANISH CHATURVEDI <email@hidden>
  • Date: Fri, 23 Feb 2007 18:08:43 +0530 (IST)

Hi list,

I've created the Menu of my cocoa application using Interface builder.I want to disable the sub menu "Prefrences.." when my application runs.I think I need to  override the method -(void)validateMenuItem:
to Enable/Disable the menu,but not sure how to use this.Is there is any document for this?
Should I use the NSMenuItem methods to do this? I've seen some sample code for this but again unsure about the creation of Menu.Can I use the NSMenuItem methods to enable/disable the menu at run time.

Any help is useful!

Thanks!
Manish.






__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Disabling Menu Items.
      • From: Citizen <email@hidden>
  • Prev by Date: Re: Core Data bound to NSPopUpButton
  • Next by Date: Re: NSXMLParser in background thread crashing
  • Previous by thread: Re: PackageMaker. How to start application after closing installer.
  • Next by thread: Re: Disabling Menu Items.
  • Index(es):
    • Date
    • Thread