Re: Enabling add button
Re: Enabling add button
- Subject: Re: Enabling add button
- From: "I. Savant" <email@hidden>
- Date: Thu, 18 Dec 2008 15:42:28 -0500
On Thu, Dec 18, 2008 at 3:27 PM, Andre Masse <email@hidden> wrote:
> BTY, when does NSArrayController canInsert: returns NO?
From the docs: "Returns a Boolean value that indicates whether an
object can be inserted into the receiver's content collection."
I've only ever seen it return NO when the content collection isn't
present. In other words, if your Widget Detail controller's content
array (or set) is bound to the Master's selection.widgets and a valid
Master object is selected, it would return YES. If there is no Master
selection, you'd get NO.
There may be other stipulations but I can't think of them off-hand.
--
I.S.
_______________________________________________
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