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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to