Enabling add button
Enabling add button
- Subject: Enabling add button
- From: Andre Masse <email@hidden>
- Date: Thu, 18 Dec 2008 13:57:51 -0500
Hi,
I'm using a classic master/detail view. The detail view has a bunch of
fields, a table view and a button (with a shortcut) for adding rows to
it. The table view is bound to an NSArrayController. Now, I want to
enable the button only when the table view (in the detail view) has
the focus. I tried to bind the "enable" property of the button to the
"canInsert" controller key of the array controller but it doesn't work
(it's always enabled). I guess I could subclass NSArrayController,
override "canInsert" to check if the table view is the firstResponder
but I'm wondering if there's another way...
Thanks,
Andre Masse
_______________________________________________
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