• 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
[ANN] KSOutlineView Framework/Interface Builder Plugin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ANN] KSOutlineView Framework/Interface Builder Plugin


  • Subject: [ANN] KSOutlineView Framework/Interface Builder Plugin
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 17 Mar 2009 19:15:17 -0400

Hi everybody,

In the course of developing the application I'm working on, I got
frustrated with having to create dummy data sources for my static
source list outline views.  They result in quite a bit of code that
can be a mess to alter when you want to later add an item to the
source list, they make localization difficult, and illogically put
static interface-related data in code.

Combine this with the other annoying source list nits (overriding
NSOutlineView just to implement -frameOfOutlineCellAtRow:, for
example, when it should be a delegate method) and I decided to fight
back with a framework and Interface Builder plugin I'm calling
KSOutlineView.

Right now it contains two classes: KSStaticTreeController, which when
used in IB presents an interface for editing a static tree of data,
and KSOutlineView, which doesn't do all that much differently from
NSOutlineView.  Right now the best immediate benefit is that binding a
plain-vanilla NSOutlineView to a KSStaticTreeController results in a
fully-usable outline view in the simulator.  Ideally, I'd like
KSOutlineView to present an interface for editing items directly in
design mode and a mechanism for pulling data from multiple
NSTreeControllers, so that you may for example have a static overall
source list structure with certain subtrees fed by bindings.

There are also a few issues, not the least of which is that Interface
Builder doesn't recognize changes to a KSStaticTreeController's
content, and thus does not mark the document as dirty.  This code is
very untested, since I wrote it today.

If you'd like to take a gander at it, and maybe help me improve it,
check it out at http://ksoutlineview.googlecode.com .

Thanks!
--Kyle Sluder
_______________________________________________

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

  • Prev by Date: Re: Incomprehensible KVC Failure!
  • Next by Date: cast to pointer from int of diff size & IODisplayCreateInfoDictionary
  • Previous by thread: Re: -stringByEvaluatingJavaScriptFromString: return value iphone
  • Next by thread: cast to pointer from int of diff size & IODisplayCreateInfoDictionary
  • Index(es):
    • Date
    • Thread