RBSplitView 1.2

Discussion and suggestions for published source code.

Re: Trouble's with 1.2

by Rainer Brockerhoff » 25 Feb 2010 21:03:06

bewebste wrote:Just to clarify with using older nib/xib files with the new plugin, it appears the difference is that the old plugin used the identifier "net.brockerhoff.RBsplitView.IBPlugin", whereas the new one uses "net.brockerhoff.RBSplitView.IBPlugin" (notice the change in case), so IB treats them as different plugins. To get your old xib file to work, open it up in a text editor, find the "IBDocument.PluginDependencies" object, and change the plugin identifier there to an uppercase "S", so it matches the new plugin.
I just published a droplet application that does that for you. Details on the RBSplitView page. Sorry for the delay in pushing that out...
Rainer Brockerhoff
Site Admin
 
Posts: 1439
Joined: 10 Sep 2002 16:31:56

Re: Trouble's with 1.2

by chinhster » 28 Apr 2010 17:13:25

I noticed a problem with collapsed and hidden subviews.

If a subview is collapsed and hidden when you exit your app, the next time the app is run and the parent splitview's state is restored, the subview's dimension grows by a few pixels regardless of whether the subview is later unhidden and expanded. I'm guessing that the splitview is not accounting for the hidden splitter when restoring its state and the subview is hidden. Here's my kludge around this (potential bug) in my startup code:

if ([subview isHidden] ) {
CGFloat dimension = ceilf([subview dimension]) ;
dimension -= [splitView dividerThickness]/2. ;
[subview setDimension:dimension] ;
}

I do this after I restore the state of the parent splitView. I had to round up the dimension otherwise the subview would slowly grow by a pixel.

FWIW, I use view controller nibs for everything including setting up my splitviews (which aren't populated until runtime). My window controller nib contains only a window and it handles loading all the view controllers and populating their splitviews and subviews at runtime. This is necessary because I allow the user to specify the arrangement of splitviews as well as what content goes in them. I try to restore the states of my splitviews as late as possible.
chinhster
 
Posts: 1
Joined: 28 Apr 2010 11:55:10

Re: RBSplitView 1.2

by ThunderCougarFalconBird » 26 Aug 2010 10:33:34

howdy-

i had to compile a target under 10.5 using RBSplitView's Interface Builder plugin. unfortunately, the (Leo) IB plugin compiled by my 10.6 system wasn't loading in Interface Builder under 10.5- i did a little digging, and i think the "Installation Directory" build setting of the "Framework(Leo)" target should be "@loader_path/../Frameworks" instead of "@executable_path/../Frameworks". the Sno target uses @loader_path, and making this change has allowed me to use the Leo IB plugin compiled in 10.6 with Interface Builder on 10.5...

great project, thanks for all your hard work!


cheers
: : ray
ThunderCougarFalconBird
 
Posts: 0
Joined: 25 Aug 2010 14:19:45

Re: RBSplitView 1.2

by Jerry Shields » 22 Jul 2011 15:31:57

We are using RBSplitview extensively in our product and have now come to the need to port our code to Lion/Xcode 4.x. Unfortunately Apple in their infinite wisdom, remove the ability to have ibplugins. Do you have any ways around this outside of only editing these xibs/nibs using IB 3? Are you planning on getting RBSplitView working on Lion/Xcode 4.x?

Jerry
Jerry Shields
 

Re: RBSplitView 1.2

by Rainer Brockerhoff » 22 Jul 2011 15:50:35

Jerry Shields wrote:Do you have any ways around this outside of only editing these xibs/nibs using IB 3? Are you planning on getting RBSplitView working on Lion/Xcode 4.x?
I've just posted about this on my blog.

Unfortunately, running IB3 on Snow Leopard (I'm running 10.6 Server in a a virtual machine here for that) seems to be the only reliable answer so far. I'm still checking the conversion option offered by Xcode 4.1, so far it doesn't seem to be much help. Check my blog for updates on this.
Rainer Brockerhoff
Site Admin
 
Posts: 1439
Joined: 10 Sep 2002 16:31:56

Previous

Return to Source Code

Who is online

Users browsing this forum: No registered users and 0 guests