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

On Apr 22, 2009, at 9:45 AM, jonat...@mugginsoft.com 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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to