• 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: Source list using bindings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Source list using bindings?


  • Subject: Re: Source list using bindings?
  • From: "Hamish Allan" <email@hidden>
  • Date: Tue, 25 Mar 2008 21:07:15 +0000

Hi Rob,

On Tue, Mar 25, 2008 at 6:20 AM, Rob Keniger <email@hidden> wrote:

> On 25/03/2008, at 11:42 AM, Hamish Allan wrote:
>
>> Is there any way to use bindings for a source list? The object that
>> gets passed to the delegate method -outlineView:isGroupItem: is an
>> NSTreeControllerTreeNode which doesn't appear to have a public API...
>
>  Class-dump shows that NSTreeControllerTreeNode is a subclass of
>  NSTreeNode so you should be able to treat it as such and get the
>  relevant object for the item by calling -representedObject.

Ah, thanks. I wonder what the purpose of this subclass is and how
fragile this solution?

I'm not convinced I'm going to go the bindings route, as my source
list has non-collapsible groups, and making sure they're expanded and
not selected when the table is first displayed seems as much trouble
as just using a datasource in the first place!

Best wishes,
Hamish
_______________________________________________

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

  • Follow-Ups:
    • Re: Source list using bindings?
      • From: Jonathan Dann <email@hidden>
References: 
 >Source list using bindings? (From: "Hamish Allan" <email@hidden>)
 >Re: Source list using bindings? (From: Rob Keniger <email@hidden>)

  • Prev by Date: Re: Garbage collection - was Beginner with Cocoa
  • Next by Date: Re: Perform selector on thread
  • Previous by thread: Re: Source list using bindings?
  • Next by thread: Re: Source list using bindings?
  • Index(es):
    • Date
    • Thread