• 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 add button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Enabling add button
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Performance of calculation on float point numbers in a array • NSNumber in NSArray, or classic C array?
  • Next by Date: Re: UNIX signals
  • Previous by thread: Re: a few Core Data questions: Predicates and document based app
  • Next by thread: Re: Enabling add button
  • Index(es):
    • Date
    • Thread