Re: Enabling menu items...
Re: Enabling menu items...
- Subject: Re: Enabling menu items...
- From: Jim Majure <email@hidden>
- Date: Thu, 17 Dec 2009 12:43:23 -0600
The "Auto Enables Items" is checked.
When I control-click the menu item in IB, under "Sent Actions" it
shows "delete:" (with the colon) linked to "First Responder".
(The "Cut" menu item is configured exactly the same way in the same
drop down menu (with a different action) and it works.)
I made the connection in the IB by control-click/drag from the menu
item to the "First Responder" and chose the "delete:" option. I'm not
exactly sure how the choices are populated on First Responder. I don't
see the "delete:" message on NSResponder, yet it shows up when I
connect to "First Responder" in IB.
Is there a way to generate code from IB, or peer into the Nib file?
Jim
On Dec 17, 2009, at 12:31 PM, Kyle Sluder wrote:
On Thu, Dec 17, 2009 at 9:57 AM, Jim Majure <email@hidden>
wrote:
I wish that were the case. However, the validateUserInterfaceItem:
message
isn't being invoked for "delete:"
Are you sure the menu on which the Delete item is located has its
"Auto Enables Items" (aka -autoenablesItems) setting checked in IB?
Also, have you double-checked that you didn't forget the colon when
specifying the delete: selector for the menu item? Previous versions
of IB would allow you to create a method whose selector did not have
any arguments.
--Kyle Sluder
_______________________________________________
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