• 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: Creating NSSplitView with Finder Column View Behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating NSSplitView with Finder Column View Behavior


  • Subject: Re: Creating NSSplitView with Finder Column View Behavior
  • From: Rainer Brockerhoff <email@hidden>
  • Date: Mon, 10 Sep 2007 08:51:33 -0300

At 22:55 -0700 09/09/2007, email@hidden wrote:
>From: PGM <email@hidden>
>References: <email@hidden>
>In-Reply-To: <email@hidden>
>Date: Mon, 10 Sep 2007 01:45:23 -0400
>Message-ID: <email@hidden>
>
>>Is there an easy way to create an NSSplitView that behaves like the column view in Finder. In particular, I'd like a split view that moves all sibling views, maintaining the original sibling view size,  when the slide divider is moved, rather than simply compressing/expanding the immediate sibling (sharing the moved divider). I know I can create this behavior catching 'splitView(Will|Did)ResizeSubviews' delegate methods and manually adjusting the view rects. But I'm hoping for a flag or subclass that will "magically" create this behavior without lots of extra code.
>
>You may want to have a look at RBSPlitView. I don't remember whether it can do exactly what you want, but it can do a lot of fancy tricks, so I wouldn't be surprised.
>
>http://www.brockerhoff.net/src/rbs.html

Thanks for the referral Patrick!

RBSplitView can indeed do that, although mimicking some of the Finder's window behaviors for column view is tricky. I've got most this working in my own code, and I'm working on the next (1.1.5) version of RBSplitView where this might be a little easier.

Ideally 1.1.5 should have a column-view example window working in the sample app. John, if you could tell me privately about details, this would help me debug this.

--
Rainer Brockerhoff  <email@hidden>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
 In their own business even sages err."
Weblog: http://www.brockerhoff.net/bb/viewtopic.php
_______________________________________________

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: core data app questions - help!
  • Next by Date: Re: Playing mp3s from Cocoa
  • Previous by thread: Re: Creating NSSplitView with Finder Column View Behavior
  • Next by thread: Dragging to reorder rows in table not working
  • Index(es):
    • Date
    • Thread