On May 30, 2012, at 11:37 AM, Demitri Muna <[email protected]> wrote:

> Just because I hate orphaned questions (as no one answered), I thought I'd 
> answer my own question.
> 
> Most examples that use Core Data/bindings/array controllers use a table view 
> as the source view, but I wanted something more flexible with my own custom 
> view that involved a little animation. Although NSTableCellView makes this a 
> little easier, it still felt shoehorned into a table view.

Really? Why? It fits quite perfectly with the view based tableview.

> I think the best answer is the realization that I don't need a table view at 
> all to use the machinery above,

I think the best solution is to use a view based NSOutlineView with variable 
row heights and custom background drawing on the NSTableRowView.

FWIW, Xcode uses NSOutlineView (non-view based at the current time).

corbin


> and that one can simply have an array of NSViews managed by an array 
> controller (in a scroll view). Everything else (e.g. master/detail, bindings) 
> just falls into place after that. The most illustrative example was mmalc's 
> "Graphics Bindings", located here:
> 
> http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
> 
> Although that link will only be valid for about a month before MobileMe ends. 
> :)
> 
> Cheers,
> Demitri
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/corbind%40apple.com
> 
> This email sent to [email protected]


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to