• 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: Problem implementing keyPathsForvaluesAffecting<Key>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem implementing keyPathsForvaluesAffecting<Key>


  • Subject: Re: Problem implementing keyPathsForvaluesAffecting<Key>
  • From: "email@hidden" <email@hidden>
  • Date: Wed, 22 Apr 2009 17:09:09 +0100


On 22 Apr 2009, at 17:02, Ken Thomases wrote:

On Apr 22, 2009, at 9:45 AM, email@hidden wrote:

Removing all items in the array bound to arrayController does not cause -canDelete to be evaluated, even though [arrayController canRemove] becomes NO.

How are you removing the items? Is it being done in a KVO-compliant manner?


I think the following is okay in this regard:

- (IBAction)delete:(id)sender
{
	if ([arrayController canRemove]) {
		[arrayController remove:sender];
	}
}

Regards,
Ken


Jonathan Mitchell

Central Conscious Unit
http://www.mugginsoft.com




_______________________________________________

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


References: 
 >Problem implementing keyPathsForvaluesAffecting<Key> (From: "email@hidden" <email@hidden>)
 >Re: Problem implementing keyPathsForvaluesAffecting<Key> (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: How to make app login window to look like OS X user login window ?
  • Next by Date: Re: Problem implementing keyPathsForvaluesAffecting<Key>
  • Previous by thread: Re: Problem implementing keyPathsForvaluesAffecting<Key>
  • Next by thread: Re: Problem implementing keyPathsForvaluesAffecting<Key>
  • Index(es):
    • Date
    • Thread