• 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
Bindings: how to deal with canRemove ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings: how to deal with canRemove ?


  • Subject: Bindings: how to deal with canRemove ?
  • From: Herve Bouvier <email@hidden>
  • Date: Fri, 17 Sep 2004 09:10:51 +0200

Hello,

I 've search every where i could but did not find any information on how to deal with the NSArrayController controller keys: canAdd, canRemove, canInsert.

I know i can easily bind the enable state of a NSButton to these controller keys but it seems the NSArrayController don't give me a chance to customize his behavior depending on the model object's selected item.

If i want to keep control of these "property" (canRemove etc...) should I sub-class NSArrayController (and implement a specific behavior on canRemove: ) or is there any other way ?
Is there a way to bind these "property" to my controller or model object ?


I really can't figure out how to deal with those keys.

Please give me a clue on where to search.

Regards
------
Herve Bouvier
Marseille

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Bindings: how to deal with canRemove ?
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: Couple more binding questions
  • Next by Date: Re: Subclassing NSSliderCell
  • Previous by thread: Re: Subclassing NSSliderCell
  • Next by thread: Re: Bindings: how to deal with canRemove ?
  • Index(es):
    • Date
    • Thread