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

NSMenuItem enabling


  • Subject: NSMenuItem enabling
  • From: Andreas Höschler <email@hidden>
  • Date: Fri, 1 Oct 2010 10:24:22 +0200

Hi all,

in my application I have an NSWindow with NSScrollView/NSTextView and while programmatically building the menu for the application I am doing

[_sdmMenu addItemWithTitle:@"Create Section" action:@selector(createSection:) keyEquivalent:@"S"];

My NSTextView subclass implements createSection:

On MacOSX 10.2 (PowerPC) the menu item gets enabled automatically when I click into the NSTextView. However, on my MacOSX 10.5.7 (Intel) machine the menu item stays grayed out. I am wondering why!?

What has changed from 10.2 to 10.5 that makes this not working anymore? How can I fix this?

Thanks a lot,

 Andreas
_______________________________________________

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


  • Prev by Date: NSTask in NSOperation
  • Next by Date: Re: portable app
  • Previous by thread: Re: NSTask in NSOperation
  • Next by thread: NSMenuItem enabling
  • Index(es):
    • Date
    • Thread