• 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
Enabling menu items...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Enabling menu items...


  • Subject: Enabling menu items...
  • From: Jim Majure <email@hidden>
  • Date: Thu, 17 Dec 2009 11:24:40 -0600

Hello,

I'm having problems enabling the "Edit>Delete" menu item on a custom view. Here's what I have tried:

- I have linked the Delete menu item to the "delete:" selector of the First Responder in IB.
- I have implemented the "(IBAction) delete: (id) sender;" on my custom view.
- I have implemented the "(BOOL)validateUserInterfaceItem:(id <NSValidatedUserInterfaceItem>)item" on my custom view
- I have confirmed that my view is being set as first responder at runtime (via acceptsFirstResponder, becomeFirstResponder, resignFirstResponder)


The "Delete" menu item never becomes enabled. I can get the "Cut" menu item to enable and activate when tied to the "cut:" selector, but no luck with "Delete". I'm sure that I'm overlooking something very simple, but being a newbie, I can't figure out what.

Thanks,
Jim
_______________________________________________

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


  • Follow-Ups:
    • Re: Enabling menu items...
      • From: Doug Knowles <email@hidden>
    • Re: Enabling menu items...
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Distributed Objects communication with a launchd "on-demand" daemon
  • Next by Date: NSAttributedString fill with gradient
  • Previous by thread: Extending UIButton for multiline & position of textLabel?
  • Next by thread: Re: Enabling menu items...
  • Index(es):
    • Date
    • Thread