• 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: Animating source view design advice.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Animating source view design advice.


  • Subject: Re: Animating source view design advice.
  • From: Corbin Dunn <email@hidden>
  • Date: Wed, 30 May 2012 11:57:08 -0700

On May 30, 2012, at 11:37 AM, Demitri Muna <email@hidden> 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@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


_______________________________________________

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: 
 >Re: Animating source view design advice. (From: Demitri Muna <email@hidden>)

  • Prev by Date: Re: Document Window Ignoring Size Settings
  • Next by Date: Re: Sandboxing. WTF?
  • Previous by thread: Re: Animating source view design advice.
  • Next by thread: IKImageBrowser crash
  • Index(es):
    • Date
    • Thread