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

Re: Bindings: how to deal with canRemove ?


  • Subject: Re: Bindings: how to deal with canRemove ?
  • From: Herve Bouvier <email@hidden>
  • Date: Mon, 20 Sep 2004 17:26:05 +0200


Le 20 sept. 04, à 09:44, Scott Stevenson a écrit :


On Sep 20, 2004, at 12:39 AM, Herve Bouvier wrote:

But is there a way ton customize the behavior of canRemove ?
Could it be Yes when an item is selected AND the item itself is ok to be deleted ?


Do i have to subclass NSArrayController for that ?

The canRemove item is a controller key, so you'll probably need to subclass for that.


Ideally, your subclass would use a delegate to extend canRemove.

- Scott
Excelent !

I think i'll do that, a reusable subclass of NSArrayController that délégate canRemove canAdd and canInsert.

Thanks a lot

Hervé
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


References: 
 >Bindings: how to deal with canRemove ? (From: Herve Bouvier <email@hidden>)
 >Re: Bindings: how to deal with canRemove ? (From: Allan Odgaard <email@hidden>)
 >Re: Bindings: how to deal with canRemove ? (From: Herve Bouvier <email@hidden>)
 >Re: Bindings: how to deal with canRemove ? (From: Larry Fransson <email@hidden>)
 >Re: Bindings: how to deal with canRemove ? (From: Herve Bouvier <email@hidden>)
 >Re: Bindings: how to deal with canRemove ? (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Bug in NSTextField?
  • Next by Date: Subclassing NSDateFormatter problem
  • Previous by thread: Re: Bindings: how to deal with canRemove ?
  • Next by thread: Width of NSSegmentedControl
  • Index(es):
    • Date
    • Thread