Re: Why would [NSArrayController setSelectionIndex] fail?
Re: Why would [NSArrayController setSelectionIndex] fail?
- Subject: Re: Why would [NSArrayController setSelectionIndex] fail?
- From: Mike Abdullah <email@hidden>
- Date: Fri, 29 Oct 2010 00:34:50 +0100
It will fail and return NO if there's an editor registered with the controller that fails to commit editing. e.g. you're editing some text in a table bound to the controller, and that text fails validation.
On 27 Oct 2010, at 22:30, vincent habchi wrote:
> Hi there,
> sorry for being rather terse these days, I am conscious I tend to tap too much and help too few.
>
> Small question: I have a NSArrayController managing a Core data entity array. I want to alter the selection via -setSelectionIndex, and it fails (the index won't change). The documentation is (also) rather terse on the possible causes for such a failure – I do no edition, I just want to pick up an entity through a dialog. Does someone have a little experience with these cases? Especially, how to dig up to the point responsible for the denial?
>
> Thanks a lot,
> Vincent
>
> _______________________________________________
>
> 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
_______________________________________________
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