nssplitview

How to expand and collapse parts of NSSplitView programatically?

Hi, I want to replace RBSplitView with NSSplitView in my existing project. The application is now leopard only and I would like to replace RBSplitView with the new NSSplitView shipped with Leopard. However, I'm missing RBSplitView's handy methods expand and collapse in NSSplitView. How can I expand and collapse parts of NSSplitView pr...

How do I fix the height of my view after collapsing NSSplitView?

I've got an NSSplitView with an NSScrollView in the bottom view. The problem is when I collapse, and then re-open (un-collapse) the bottom view, the height of the scroll view is beyond the height of that bottom view so the top part of the scoll view is being clipped. I've got my scroll view and my split view set to autoresize in all di...

Setting one side of an NSSplitView programmatically

I've got an NSSplitView and on the left side I've got a tableView (like a source list) and depending on row selection, I want to change the the right side of the split view. I can't quite figure out how to do this. When I add my desired subview to the splitview, it adds another split (so now there's 3 views total... not what I wanted). ...

NSSplitView splitter pane change notification

Hello I need to implement four views splitters like in Maya, 3ds max, Blender or other similar modeling tools. I use NSSplitView on Mac side of my editor and I need to know when user drags one pane to sync another pane. Is there any way to get new size from one NSSplitView and sync another view to it? I have working code for Windows Form...

Reposition an NSBox in the top pane of a horizontal NSSplitView

I've worked for hours on this and I just can't get it - should be really basic stuff but it's not getting thru my thick skull. I think it has to do with the coordinate system in Cocoa but I really don't know. This is all happening in the top pane of a horizontal NSSplitView. Very simply, I'm trying to position one NSBox right below a ...

How to hide a divider of nssplitview?

Now I want to hide or show with my condition a divider when my app run. used this delegate method: - (BOOL)splitView:(NSSplitView *)splitView shouldHideDividerAtIndex:(NSInteger)dividerIndex { if (A) return YES; else return NO; } but it didn't work , why? How to used this method? Thank you very much! ...

How to disable resizing of the subview of NSSplitView in Interface Builder?

I've created in Interface Builder a NSSplitView with two subviews. I want the left-side view to have fixed width. I've tried to define autosizing rules for both subviews but the left subview still changes width on window resizing (split view fills up a window). May be that caused by NSSplitView's Autoresizes Subviews property? (I can't u...

Get the number of dividers in an NSSplitView

I suspect that the number of dividers in an NSSplitView is equal to [[MySplitViewObject subviews] count] -1 and that the index of any given divider in an NSSplitView is equal to the index of the subview to the left of or above the divider (depending on the NSSplitView's orientation). Is it, or is there some undocumented and exposed prop...

iPad - I need to put a split view inside a tab bar application.

hello, is there a way to add a split view in a tabbar application using only IB, without add the split view programmatically? many thanks, Simone ...

Incorrent NSTableView frame within an NSSplitView

Within my Mac app I've setup two NSSplitViews to create a Mail-style interface (with the first ScrollView used to create a vertical separator, and the second nested within the first, to create the horizontal separator). To illustrate the interface, I've created the following diagram: To illustrate the setup further, here's an annotate...

Delegate methods not invoked for nssplitview present on top of another nssplitview

I have a horizontal NSSplitView which sits on top of right sub view of another vertical NSSplitView. I have delegate methods to constraint the left sub view from resizing. But the same delegate methods are never invoked for the horizontal NSSplitView sitting on top. What can be done to achieve this? ...

No MouseUp:/Down: on custom view in NSSplitView on Leopard

I am currently working on a project build for OSX 10.5 and up. First of all, the 10.6 users do not see this; only 10.5 users have this issue. You are not able to reproduce this on 10.6. In short: when placing an custom extended class of NSView with an overload implementation of - (void)mouseUp:(NSEvent *)theEvent the mouseUp doesn't get...

How to remove a SubView from a NSSplitView in cocoa?

I'm loading two different views with this IBActions - (IBAction)showFirstView:(id)sender{ theDetailViewController = [DetailViewController new]; [theDetailViewController initWithNibName:@"DetailView" bundle:nil]; NSView *splitRightView = [[theSplitView subviews] objectAtIndex:1]; NSView *aDetailView = [theDetailViewCont...

NSSplitter how to prevent proportional space distribution on resize.

I have a window with a source list sidebar at the right side and a content view on the left both inside an NSSplitView. When i resize the window, the additional space is distributed to the source list and the content view. How can i make the source list to maintain its fixed width. All Apple applications are doing this so i hope i just ...