• 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: Cocoa-dev Digest, Vol 5, Issue 219
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 5, Issue 219


  • Subject: Re: Cocoa-dev Digest, Vol 5, Issue 219
  • From: Daniel Child <email@hidden>
  • Date: Tue, 12 Feb 2008 23:28:56 -0500

Actually, I was abbreviating. getUserChoice does have (id) sender as an argument. But the key is that I had forgotten to set the target. All works well now. Thanks!

On Feb 12, 2008, at 5:08 PM, email@hidden wrote:

All the working actions I've ever seen have one argument.  As you have
written it, "getUserChoice" has 0 arguments.  "getUserChoice:" (note
the colon) has one argument.  The full declaration is  -
(IBAction)getUserChoice:(id)sender.

Another thing which can cause menus to not be enabled is if you've
implemented -validateMenuItem: or -validateUserInterfaceItem: in some
object in the responder chain which is returning NO for unknown items.

Finally, remember to -setTarget: in your menu items.

_______________________________________________

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: Cocoa-dev Digest, Vol 5, Issue 219
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: [Q] NSRunLoop igrnoring exception [NSCFDictionary setObject.... error
  • Next by Date: Re: Intercepting keyDown event from NSComboBox
  • Previous by thread: Re: [Q] NSRunLoop igrnoring exception [NSCFDictionary setObject.... error
  • Next by thread: Re: Cocoa-dev Digest, Vol 5, Issue 219
  • Index(es):
    • Date
    • Thread