• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to tell if NSArrayController has a selected CoreData instance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:11:42 -0400 (EDT)
  • Importance: Normal

> On Sep 28, 2009, at 18:11, Kyle Sluder wrote:
>
>> 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
>
> I may have missed something earlier in the thread, but the standard
> "canRemove" property amounts (for an array controller) pretty much to
> "is anything selected?" It's not a ridiculous choice for a binding to
> control other button enable states, even though I guess there's a
> semantic difference.
>
> Perhaps there's a valid reason not to conflate the two, but it's just
> a suggestion.
>
> FWIW
>
>

Oohh... good idea.  I didn't know that about canRemove:  Thanks.

_______________________________________________

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

References: 
 >How to tell if NSArrayController has a selected CoreData instance? (From: Timothy Reaves <email@hidden>)
 >Re: How to tell if NSArrayController has a selected CoreData instance? (From: Kyle Sluder <email@hidden>)
 >Re: How to tell if NSArrayController has a selected CoreData instance? (From: "Timothy Reaves" <email@hidden>)
 >Re: How to tell if NSArrayController has a selected CoreData instance? (From: Kyle Sluder <email@hidden>)
 >Re: How to tell if NSArrayController has a selected CoreData instance? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: How to tell if NSArrayController has a selected CoreData instance?
  • Next by Date: UIControl touchInside property
  • Previous by thread: Re: How to tell if NSArrayController has a selected CoreData instance?
  • Next by thread: Re: How to tell if NSArrayController has a selected CoreData instance?
  • Index(es):
    • Date
    • Thread