On Jul 3, 2012, at 10:31 AM, Rainer Brockerhoff wrote:
> On Jul 3, 2012, at 11:03 , Andy Lee wrote:
> 
>> I haven't used RBSplitView, but it sounds like it might be handy to have a 
>> method for replacing an already-set-up NSSplitView with an RBSplitView. 
>> Maybe it could be a category method on NSSplitView, something like this:
>> ...
>> This way you can still use IB to lay out the subviews of the split view, 
>> using a regular NSSplitView. In awakeFromNib, you can swap out the split 
>> view by calling this method.
> 
> 
> Now that's an interesting idea, thanks Andy! I'll look into it soon, I hope.
> 
> Handiest way might be to implement something like +[RBSplitView 
> transmogrify:(NSSplitView*)someSplitView].

Nice -- that's a better API than my idea.

I was about to add a P.S. that since your dividers might not be the same 
thickness as the dividers in the NSSplitView, there might have to be a bit of 
pixel tweaking. Maybe the docs for the method could advise using a particular 
divider thickness for best results, and/or the method could write a log message 
whenever it has to tweak pixels so that the subviews aren't *exactly* the same 
size as they were in the nib.

--Andy

> 
> All the cool extra RBSplitSubview properties would, of course, have to set 
> manually... hm.
> --
> Rainer Brockerhoff  <rai...@brockerhoff.net>
> Belo Horizonte, Brazil
> "In the affairs of others even fools are wise
> In their own business even sages err."
> Weblog: http://www.brockerhoff.net/blog
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to