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: Mon, 28 Sep 2009 21:02:35 -0400 (EDT)
- Importance: Normal
> On Mon, Sep 28, 2009 at 2:28 PM, Timothy Reaves
> <email@hidden> wrote:
>> What is the correct way to determine if that proxy represents an
>> actual entity?
>
> If you need to determine if there is a selection, you want to use the
> selectedObjects property. If you want to bind *through* the
> selection, then you can use the selection property.
>
> --Kyle Sluder
>
>
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.
Ah well, programatically it is then.
_______________________________________________
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