Re: How to tell if NSArrayController has a selected CoreData instance?
Re: How to tell if NSArrayController has a selected CoreData instance?
- Subject: Re: How to tell if NSArrayController has a selected CoreData instance?
- From: "Timothy Reaves" <email@hidden>
- Date: Tue, 29 Sep 2009 10:10:17 -0400 (EDT)
- Importance: Normal
> On Mon, Sep 28, 2009 at 6:02 PM, Timothy Reaves
> <email@hidden> wrote:
>> Well, I was hoping to bind buttons enabled property. If I use a
>> regular NSArray backed controller this works. And you can't bind (at
>> least I don't know how) with selectedObjects. But you can with
>> selection, and an NSNotNil value transformer.
>
> What makes you think that you can't bind to selectedObjects?
>
> Also, have you tried comparing the selection proxy to NSNoSelectionMarker?
>
> --Kyle Sluder
>
>
What makes you think you can? Logically, you shouldn't be able. I'd
imagine selectedObjects is always going to return an index set; it'd
just be empty with no selection. I did try comparing it to
NSNoSelectionMarker just in case, and that doesn't work.
_______________________________________________
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