• 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: NSSplitView question - how to implement my own "adjustViews" style method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSplitView question - how to implement my own "adjustViews" style method


  • Subject: Re: NSSplitView question - how to implement my own "adjustViews" style method
  • From: Andy Lee <email@hidden>
  • Date: Tue, 03 Jul 2012 10:53:06 -0400

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  <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/blog
>

_______________________________________________

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: NSSplitView question - how to implement my own "adjustViews" style method (From: Rainer Brockerhoff <email@hidden>)
 >Re: NSSplitView question - how to implement my own "adjustViews" style method (From: Andy Lee <email@hidden>)
 >Re: NSSplitView question - how to implement my own "adjustViews" style method (From: Rainer Brockerhoff <email@hidden>)

  • Prev by Date: Re: NSSplitView question - how to implement my own "adjustViews" style method
  • Next by Date: Re: Write Finder plugin
  • Previous by thread: Re: NSSplitView question - how to implement my own "adjustViews" style method
  • Next by thread: Re: NSSplitView question - how to implement my own "adjustViews" style method
  • Index(es):
    • Date
    • Thread