• 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
Adding Bindings to NSOutlineView versus a horrible hack
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding Bindings to NSOutlineView versus a horrible hack


  • Subject: Adding Bindings to NSOutlineView versus a horrible hack
  • From: Brent Gulanowski <email@hidden>
  • Date: Thu, 22 Jul 2004 19:17:05 -0400

Since I cannot wait for Tiger and need an outline view in an app that
is otherwise being smoothly converted to bindings, I ask this: has
anyone got free code or guidance for how to minimally add bindings
support to NSOutlineView? I'm reading mmalc's GraphicsBindings sample
and getting some general sense of what's required, but if I can shave
any time of experimentation and analysis that would be great.

If I have an array at the top level, and the items in that array act
as containers, and support KVC indexed accessors, then I have a tree
structure in my model. Would I want a tree controller subclass of
NSObjectController? I just need to work out how to propagate changes
up the tree. The controller's version of the tree could be made of
nested arrays.

My alternative was to create a subclass of NSArrayController with
outline view data source methods on it.

--

Brent Gulanowski
http://www.boredastronaut.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Adding Bindings to NSOutlineView versus a horrible hack
      • From: Shaun Wexler <email@hidden>
  • Prev by Date: Re: threads in Xcode
  • Next by Date: Re: Drawing strings at 20fps
  • Previous by thread: Re: UnArchiving Mutable Array problem...
  • Next by thread: Re: Adding Bindings to NSOutlineView versus a horrible hack
  • Index(es):
    • Date
    • Thread