Re: NSSplitView layout problem

2022-09-16 Thread Andy Lee via Cocoa-dev
[catching up on email] On Thu, Sep 8, 2022, at 5:34 PM, James Walker via Cocoa-dev wrote: > I could insert the edit > field in a custom NSView and insert that in the split view, but I'm > wondering if there is a better way to handle the issue? This is how I would do it. Seems like a fine solut

Re: NSSplitView Problems

2017-05-03 Thread Quincey Morris
On May 3, 2017, at 09:27 , Richard Charles wrote: > > So it appears that simply allowing the the size of a subview to go negative > when autoresizing fixes an issue that has been around since the days of > NeXTSTEP. So what am I missing? I dunno, but I think you need to be a bit cautious with

Re: NSSplitview and NSTableview

2016-03-20 Thread Roland King
> On 21 Mar 2016, at 12:05, yu...@aim.com wrote: > > Hi, > I spent sometime on this strange issue but still could not figure out. I > hope i could get some help from the group. > > > I have a NSScrollView which contains an NSSplitView; the splitView contains > four panes; each pane is a NST

Re: NSSplitView in a separate NSWindowControl doesn't show for some reason

2015-10-25 Thread Nick
Graham, Thank you for your answer. Just to follow up - yes, I tried adding the view as a subview, instead of replacing the content view of the window. But the result was the same - the split view kept losing its arrangesAllSubviews property, whenever the split view was loaded from a different XIB t

Re: NSSplitView in a separate NSWindowControl doesn't show for some reason

2015-10-25 Thread Graham Cox
> On 25 Oct 2015, at 5:51 am, Nick wrote: > > What am I doing wrong? > This:- > self.window.contentView = self.vc.view; > A NSWindow is not itself a NSView, so it needs to have a closely associated view that hosts all the rest of the window’s content. That is the contentView. It should

Re: NSSplitView in a separate NSWindowControl doesn't show for some reason

2015-10-24 Thread Nick
An interesting discovery. I went through all properties one by one in NSSplitView, comparing ones that are set automatically to NSSplitView in a MainMenu.xib and the one that are set automatically in MyViewController.xib. When I load NSSplitView as part of another xib, its property "arrangesAllSubv

Re: NSSplitView parallel motion

2014-11-09 Thread Luther Baker
FWIW ... achieved most of this by nesting split views and leveraging autolayout constraints and priorities, almost no delegate code. I'm still not sure how Mail pulls off the disappearing Source animation though :-) Thanks, -Luther On Sat, Nov 8, 2014 at 2:58 PM, Luther Baker wrote: > Is ther

Re: NSSplitView divider position

2014-11-08 Thread Luther Baker
Thanks Ken. On Sat, Nov 8, 2014 at 9:02 AM, Ken Thomases wrote: > On Nov 8, 2014, at 8:19 AM, Luther Baker wrote: > > > Is there a direct way to determine the positions of the dividers in > > NSSplitView. > > No. > > > If not, are most people calculating this by adding the widths of all the > >

Re: NSSplitView divider position

2014-11-08 Thread Ken Thomases
On Nov 8, 2014, at 8:19 AM, Luther Baker wrote: > Is there a direct way to determine the positions of the dividers in > NSSplitView. No. > If not, are most people calculating this by adding the widths of all the > "visible" child/container views to the left of the divider index? (I've > noticed

Re: NSSplitView divider tracking-area

2014-10-30 Thread edward taffel
> On Oct 30, 2014, at 3:19 PM, Quincey Morris > wrote: > > On Oct 30, 2014, at 11:19 , edward taffel > wrote: >> >> i agree! do you feel it should always track? [anyone else?] > > There’s an argument that says it should change the cursor if and only if > mouse down w

Re: NSSplitView divider tracking-area

2014-10-30 Thread Quincey Morris
On Oct 30, 2014, at 11:19 , edward taffel wrote: > > i agree! do you feel it should always track? [anyone else?] There’s an argument that says it should change the cursor if and only if mouse down while the cursor is changed would “grab” the splitter. (So that would be a “yes” in your scenari

Re: NSSplitView divider tracking-area

2014-10-30 Thread edward taffel
> On Oct 30, 2014, at 1:42 PM, Keary Suska wrote: > > A tracking area can choose when to track, and it appears that NSSplitView has > chosen to track only when the window is key. You may be able to access the > tracking area via the -trackingAreas method and swap it out with one of your > own

Re: NSSplitView divider tracking-area

2014-10-30 Thread Keary Suska
On Oct 30, 2014, at 10:45 AM, edward taffel wrote: >> AFAIK the tracking area of the split view is not affected by anything in the >> way you describe, and looking at the disassembly shows nothing out of the >> ordinary. The delegate has the ability to add to the area, but that's it. > > i’m

Re: NSSplitView divider tracking-area

2014-10-30 Thread edward taffel
> On Oct 30, 2014, at 12:34 PM, Seth Willits wrote: > >> in a panel, the tracking area for NSSplitView’s divider is only active if >> the panel is key, i.e. the cursor is not affected otherwise. as a panel is >> not generally key unless needed, ought not this area be always active? >> anyone

Re: NSSplitView divider tracking-area

2014-10-30 Thread Seth Willits
> in a panel, the tracking area for NSSplitView’s divider is only active if the > panel is key, i.e. the cursor is not affected otherwise. as a panel is not > generally key unless needed, ought not this area be always active? anyone > agree? anyone have a workaround? What does "a panel" mean to

Re: NSSplitView strange behavior

2013-08-13 Thread Seth Willits
On Aug 13, 2013, at 6:43 AM, Vincent CARLIER wrote: > I experience some strange behavior with NSSplitView. > ... > Anyone experienced something like this ? > Is there a better way to do what I'm trying to do ? Make your life easier and try AGNSSplitViewDelegate or (so I've heard) auto layout. h

Re: NSSplitView similar to Xcode's editor/debug area split view

2013-07-03 Thread Chuck Soper
Hi Andy, Thanks for this code snippet. It was exactly what I was asking for, but it didn't fit for my specific situation. I now have a split view with three subviews with different holding priorities. The only way I could get this to work was to use constraints, and animate them. It's mostly strai

Re: NSSplitView similar to Xcode's editor/debug area split view

2013-07-02 Thread Miron Iancu
Hi. 1. Use Split view's setPosition:ofDividerAtIndex. Use delegate to control the constraints. 2. Using above. If you need custom easing of movement it's a bit more complicated. Regards, M Sent from my iPhone On 27.06.2013, at 03:30, Chuck Soper wrote: > I'm trying to implement an NSS

Re: NSSplitView similar to Xcode's editor/debug area split view

2013-06-28 Thread Andy Lee
Hi Chuck, On Jun 26, 2013, at 8:30 PM, Chuck Soper wrote: > 2. How should I animate the showing or hiding of the 'debug area' view? I do by sending setFrame: to the two subviews' animator proxies instead of to the view itself. // Assumes the split view has two subviews, one above the other. -

Re: NSSplitView: Many subviews and ViewControllers, best practices

2013-05-21 Thread Graham Cox
On 21/05/2013, at 6:39 PM, Trygve Inda wrote: > In one pane, I need to have three different views supported by an NSBox that > I can swap the views out (for icon, thumbnail and list view modes). These > views all need access to the same NSArrayController. Have you considered using a tabless NST

Re: NSSplitView not Resizing Subviews if Delegate is used

2013-02-21 Thread Kevin Cathey
Michael, The issue here is that you are overriding one of several delegate methods that puts split view in "compatibility mode". Essentially some of the delegate methods on NSSplitView duplicate the functionality of what you can do with auto layout. In order to keep existing applications workin

Re: NSSplitView not Resizing Subviews if Delegate is used

2013-02-21 Thread Kevin Cathey
> Autolayout does not work with NSSplitView on 10.7. Auto layout does not work well with NSSplitView on 10.7. You can still have an NSSplitView in your UI and it will function, with the caveat that the min/max split positions will ignore what the constraints determine. So if you have a subview t

Re: NSSplitView not Resizing Subviews if Delegate is used

2013-02-19 Thread Kyle Sluder
On Tue, Feb 19, 2013, at 03:31 PM, Chuck Soper wrote: > Autolayout works well with NSSplitView. There may be differences between > 10.7 or 10.8 but I can't remember. Does your app require Mac OS X 10.8 or > 10.7? Autolayout does not work with NSSplitView on 10.7. --Kyle Sluder ___

Re: NSSplitView not Resizing Subviews if Delegate is used

2013-02-19 Thread Chuck Soper
Autolayout works well with NSSplitView. There may be differences between 10.7 or 10.8 but I can't remember. Does your app require Mac OS X 10.8 or 10.7? The way I use autolayout with NSSplitView is to add constraints to the subviews in IB. If you need to add or remove those constraints, you can co

Re: NSSplitView not Resizing Subviews if Delegate is used

2013-02-19 Thread Michael Starke
I was thinking about Auto-Layout and indeed it is the source of the Problem. Even if the delgate just had - (BOOL)splitView:(NSSplitView *)splitView shouldAdjustSizeOfSubview:(NSView *)view { return YES; } the resizing did not work anymore. The proposedMinimumPosition was just the input

Re: NSSplitView not Resizing Subviews if Delegate is used

2013-02-19 Thread Chuck Soper
Are you using Auto Layout in InterfaceBuilder? (See the Use Auto Layout checkbox in the File inspector for each nib.) If so, implementing splitView:constrainMinCoordinate:ofSubviewAt: may conflict with auto layout. Also, what is your purposed minimum? Where is it defined? Chuck On 2/19/13 7:53

Re: NSSplitView -drawDividerInRect

2013-01-05 Thread koko
Now that you point this out it seems like the answer … sometimes we need a 'head slap'. I already use [NSSplitViewDelegate splitView:additionalEffectiveRectOfDividerAtIndex:] to add a rectangle to a vertical splitter tracking area. So it would be …. 1. Add a view configured as desired to th

Re: NSSplitView -drawDividerInRect

2013-01-04 Thread Graham Cox
On 05/01/2013, at 12:16 AM, koko wrote: > I am currently drawing a custom divider via -drawDividerInRect but want to > improve this and am not sure of the proper approach. > > I would like to draw a divider similar to that in the Xcode Utilities view > which has the four buttons for Template,

Re: NSSplitView crash upon restore from 10.8 Versions Browser

2012-09-13 Thread Jerry Krinock
I was able to reproduce and fix this problem that went away a few weeks ago. The mystery factor was that the crash only occurs if user clicks on the old (right-screen side) version while in the Versions Browser, which causes its window to resize, before restoring. On 2012 Aug 20, at 14:14, Ke

Re: NSSplitView crash upon restore from 10.8 Versions Browser

2012-08-21 Thread Jerry Krinock
On 2012 Aug 20, at 14:14, Kevin Perry wrote: > Looks like the crash is happening while attempting to invoke > -respondsToSelector:. > > Odds are that this is a message being sent to [self delegate], which looks > like a deallocated object. Thank you, Kevin. I like it. > Is it possible that

Re: NSSplitView crash upon restore from 10.8 Versions Browser

2012-08-20 Thread Lee Ann Rucker
I've hit issues with splitView delegate getting called after the delegate is dealloced, and my setDelegate happens in the nib - normally what gets set in the nib gets unset correctly later. I had to put in a NSWindowWillCloseNotification observer and clear the splitView delegate there. It's an

Re: NSSplitView crash upon restore from 10.8 Versions Browser

2012-08-20 Thread Kevin Perry
Looks like the crash is happening while attempting to invoke -respondsToSelector:. Odds are that this is a message being sent to [self delegate], which looks like a deallocated object. Is it possible that the split view is outliving its delegate? Typically, when a delegate gets deallocated (or

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

2012-07-19 Thread Gary L. Wade
I don't know for sure, but you might be able to get around the 3rd party plug-in issue by using runtime attributes instead. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

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

2012-07-19 Thread Rainer Brockerhoff
On Jul 19, 2012, at 11:06 , cocoa-dev-requ...@lists.apple.com wrote: > Date: Thu, 19 Jul 2012 11:42:07 +0300 > From: Motti Shneor > Message-ID: > > Thanks for the note. Indeed, RBSplitView is a complete, functional and > feature-loaded class, but it is also lagging behind current Cocoa > d

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

2012-07-19 Thread Motti Shneor
Hello Gideon. Thanks for the note. Indeed, RBSplitView is a complete, functional and feature-loaded class, but it is also lagging behind current Cocoa developments, and does not integrate well XCode 4.x and with SDK 10.7 or and SDK 10.8. Testing with it I saw problems in: 1. Look and feel (not

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

2012-07-18 Thread Gideon King
I always use RBSplitView - has all that stuff built in and more… http://brockerhoff.net/blog/tag/rbsplitview/ Seems to work fine for my needs. Regards Gideon On 03/07/2012, at 2:40 PM, Motti Shneor wrote: > Thanks Graham (Sigh…) > > I was beginning to think I'm stupid or something, strug

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

2012-07-17 Thread Motti Shneor
Thanks Graham (Sigh…) I was beginning to think I'm stupid or something, struggling so hard with a UI element as ordinary as a Split-View. I have the feeling I "almost got it", and I even think I understand why and when delegate methods are being called. Rolling out my own SplitView doesn't se

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

2012-07-03 Thread Rainer Brockerhoff
On Jul 3, 2012, at 12:11 , Andy Lee wrote: > On Jul 3, 2012, at 10:31 AM, Rainer Brockerhoff wrote: >> Now that's an interesting idea, thanks Andy! I'll look into it soon, I hope. > > P.P.S. I'm not sure how to deal with autolayout constraints that might get > broken. Does replaceSubview:with: t

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

2012-07-03 Thread Andy Lee
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 meth

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

2012-07-03 Thread Andy Lee
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

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

2012-07-03 Thread Rainer Brockerhoff
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 s

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

2012-07-03 Thread Andy Lee
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: - (RBSplitView *)replaceWithRBSplitView { // Retain and autorelease

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

2012-07-03 Thread Rainer Brockerhoff
On Jul 3, 2012, at 01:46 , cocoa-dev-requ...@lists.apple.com wrote: > Date: Tue, 03 Jul 2012 10:14:21 +1000 > From: Graham Cox > Message-ID: > > On 03/07/2012, at 12:21 AM, Motti Shneor wrote: > >> I really need an advice here. > > This will sound flippant but it's not meant to be: implement

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

2012-07-03 Thread Motti Shneor
Thanks again Graham and all the rest --- We're going somewhere now. On 3 ביול 2012, at 08:22, Graham Cox wrote: > > On 03/07/2012, at 2:46 PM, Motti Shneor wrote: > >> have the feeling I "almost got it", and I even think I understand why and >> when delegate methods are being called. Rollin

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

2012-07-02 Thread Kyle Sluder
On Tue, Jul 3, 2012, at 03:22 PM, Graham Cox wrote: > True in part. But you could subclass NSView instead. After all, > NSSplitView doesn't really bring that much to the table - it relies on > inheriting NSView to store its subviews, the only thing it draws is the > actual splitter itself, which is

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

2012-07-02 Thread Graham Cox
On 03/07/2012, at 2:46 PM, Motti Shneor wrote: > have the feeling I "almost got it", and I even think I understand why and > when delegate methods are being called. Rolling out my own SplitView doesn't > seem to be easier than finding the answer to my question, because to inherit > from NSSp

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

2012-07-02 Thread Quincey Morris
On Jul 2, 2012, at 21:46 , Motti Shneor wrote: > for god sake, why isn't there a [mySplitView setSubview:panelSubview > collapsedStateTo:YES/NO] Well, one possible answer is to ask yourself if you're asking the right questions. I think there's perhaps a small difference between the user c

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

2012-07-02 Thread Todd Heberlein
On Jul 2, 2012, at 9:46 PM, Motti Shneor wrote: > Thanks Graham (Sigh…) > > I was beginning to think I'm stupid or something, struggling so hard with a > UI element as ordinary as a Split-View. I ran into this exact same problem last week. I can't believe it is an extremely rare situation. I

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

2012-07-02 Thread Motti Shneor
Thanks Graham (Sigh…) I was beginning to think I'm stupid or something, struggling so hard with a UI element as ordinary as a Split-View. I have the feeling I "almost got it", and I even think I understand why and when delegate methods are being called. Rolling out my own SplitView doesn't se

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

2012-07-02 Thread Graham Cox
On 03/07/2012, at 12:21 AM, Motti Shneor wrote: > I really need an advice here. This will sound flippant but it's not meant to be: implement your own split view. NSSplitView is the most bizarre piece of design and difficult to get to behave just how you want even in simple cases like having

Re: NSSplitView-like cursor "grabbing"

2012-03-26 Thread Markus Spoettl
On 3/26/12 7:40 PM, Kevin Perry wrote: It overrides -[NSView hitTest:] to return self for clicks inside the draggable region. Fantastic, thanks a lot! Works great! Regards Markus -- __ Markus Spoettl ___ Coco

Re: NSSplitView-like cursor "grabbing"

2012-03-26 Thread Kevin Perry
It overrides -[NSView hitTest:] to return self for clicks inside the draggable region. -KP On Mar 26, 2012, at 10:30 AM, Markus Spoettl wrote: > Hello all, > > does anyone know how to grab the cursor like NSSplitView does? It somehow > manages to know that the cursor is near a divider when

Re: NSSplitView

2010-09-23 Thread Fritz Anderson
On 23 Sep 2010, at 2:40 PM, k...@highrolls.net wrote: > Is there a way to send a mouse click to an NSSplitView like -performClick for > a NSControl? What are you hoping to accomplish? Split views don't (aren't semantically supposed to) do anything when you just click them. There's nothing for t

Re: NSSplitView

2010-09-23 Thread koko
No, which is why I asked in the first place. 2010-09-23 14:12:25.784 Convert It Mac[2638:813] *** -[RightVertSplit performClick:]: unrecognized selector sent to instance 0x1154230 -koko On Sep 23, 2010, at 1:43 PM, Shawn Bakhtiar wrote: NSSplitView is derived from NSResponder, so the answ

RE: NSSplitView

2010-09-23 Thread Shawn Bakhtiar
NSSplitView is derived from NSResponder, so the answer is yes, it should have all the same functionality as an NSControl. > From: k...@highrolls.net > To: cocoa-dev@lists.apple.com > Date: Thu, 23 Sep 2010 13:40:41 -0600 > Subject: NSSplitView > > Is there a way to send a mouse click to an NS

Re: NSSplitView with multiple dividers

2010-09-19 Thread Kyle Sluder
On Sep 19, 2010, at 11:55 AM, "jonat...@mugginsoft.com" wrote: > > On 19 Sep 2010, at 18:14, Geoffrey Holden wrote: > >> I am trying to set up a window with three resizable panes. Currently, I >> have done this by dragging an NSSplitView into my window (in IB) and then >> dragging another N

Re: NSSplitView with multiple dividers

2010-09-19 Thread jonat...@mugginsoft.com
On 19 Sep 2010, at 18:14, Geoffrey Holden wrote: > I am trying to set up a window with three resizable panes. Currently, I have > done this by dragging an NSSplitView into my window (in IB) and then dragging > another NSSplitView into that: > > +NSSplitView > |--+NSView > | '-NSTableView > |

Re: NSSplitView and NSScrollView

2009-10-15 Thread Harry Sfougaris
I need it to be dynamic, as I am trying to build something similar to a report designer with multiple user-defined bands. My problem is that the split view just tries to "autofit" itself in the scroll view, and the size of the views changes as I resize the scroll view I'm doing the foll

Re: NSSplitView and NSScrollView

2009-10-15 Thread Kyle Sluder
On Thu, Oct 15, 2009 at 1:31 AM, Harry Sfougaris wrote: > I have placed a NSSplitView inside a NSScrollView in code. Obligatory question: why are you doing this in code, and not in Interface Builder? > However, when the user resizes one of the views so part of it outside the > NSScrollView visib

Re: NSSplitView and NSScrollView

2009-10-15 Thread Karolis Ramanauskas
Good day, Would you like to share some of your code? It would be a lot easier to see what may be going on... Cheers! On Thu, Oct 15, 2009 at 3:31 AM, Harry Sfougaris wrote: > I have placed a NSSplitView inside a NSScrollView in code. > However, when the user resizes one of the views so part of

Re: NSSplitView resizing

2009-08-27 Thread Bill Cheeseman
On Aug 26, 2009, at 11:55 PM, Oftenwrong Soong wrote: n this app my needs are very limited (for now at least!) so I implemented a simple delegate method. Everyone's input helped tremendously. Thanks to everyone who posted: - (void)splitView:(NSSplitView *)sender resizeSubviewsWithOldSize:

Re: NSSplitView resizing

2009-08-26 Thread Oftenwrong Soong
On Wednesday, August 26, 2009 8:22:24 PM, Brandon Walkin wrote: > This can be done completely in IB if you use BWToolkit. > http://brandonwalkin.com/bwtoolkit/ > > Demo video: http://brandonwalkin.com/blog/videos/iCalSplitView.mov > > Brandon Wow, that is a *really* impressive control! Thanks

Re: NSSplitView resizing

2009-08-26 Thread Brandon Walkin
This can be done completely in IB if you use BWToolkit. http://brandonwalkin.com/bwtoolkit/ Demo video: http://brandonwalkin.com/blog/videos/iCalSplitView.mov Brandon On 2009-08-26, at 11:48 AM, Oftenwrong Soong wrote: Hi all, I have a window containing a NSSplitView. When the window is r

Re: NSSplitView resizing

2009-08-26 Thread jonat...@mugginsoft.com
On 26 Aug 2009, at 16:48, Oftenwrong Soong wrote: Hi all, I have a window containing a NSSplitView. When the window is resized, both panes of the split view resize proportionally. I would like one pane to remain fixed while the other resizes. Xcode does this, as well as iCal and other ap

Re: NSSplitView resizing

2009-08-26 Thread I. Savant
On Aug 26, 2009, at 11:48 AM, Oftenwrong Soong wrote: I have a window containing a NSSplitView. When the window is resized, both panes of the split view resize proportionally. I would like one pane to remain fixed while the other resizes. Xcode does this, as well as iCal and other apps. I

Re: NSSplitView resizing

2009-08-26 Thread Benjamin Stiglitz
> I have a window containing a NSSplitView. When the window is resized, both > panes of the split view resize proportionally. I would like one pane to > remain fixed while the other resizes. Xcode does this, as well as iCal and > other apps. > > Is there a delegate method that does this or must

Re: NSSplitView autosave troubles

2009-07-28 Thread Benjámin Salánki
Yes I have tried that, to no avail. Sent from my iPhone On 2009.07.29., at 3:46, Graham Cox wrote: On 29/07/2009, at 10:50 AM, Benjámin Salánki wrote: please help me, because this is driving me crazy. I have a simple window set up in IB which contains only an autosized NSSplitView as it

Re: NSSplitView autosave troubles

2009-07-28 Thread Graham Cox
On 29/07/2009, at 10:50 AM, Benjámin Salánki wrote: please help me, because this is driving me crazy. I have a simple window set up in IB which contains only an autosized NSSplitView as its content. I add an autosave name for the splitview in IB. Go to Xcode, build and run, everything's

Re: [ NSSplitview ] -setAutosaveName

2009-05-31 Thread Greg Guerin
Erg Consultant wrote: I see no discussion as to what they actually do or how to use them. The docs are concise to the point of opacity. You'd have to infer the workings of NSSplitView from the way other views do auto-saving, e.g. NSTableView's setAutosaveName: . http://developer.apple.co

Re: [ NSSplitview ] -setAutosaveName

2009-05-31 Thread Kyle Sluder
On Sun, May 31, 2009 at 4:02 PM, Erg Consultant wrote: > Where is it documented? Other than the scant listings for Why are you setting the split view's autosave name in code? 99.(completely arbitrary number of 9's)% of the time you set it once in IB. That way it has the autosave name when it's u

Re: [ NSSplitview ] -setAutosaveName

2009-05-31 Thread Erg Consultant
: Re: [ NSSplitview ] -setAutosaveName On Sat, May 30, 2009 at 11:22 PM, Erg Consultant wrote: > What does setAutosaveName actually do? I assume it saves the position of the > splitview to user defaults? The behavior is documented, succinctly, here: http://developer.apple.com/documentation

Re: [ NSSplitview ] -setAutosaveName

2009-05-31 Thread Jim Correia
On Sat, May 30, 2009 at 11:22 PM, Erg Consultant wrote: > What does setAutosaveName actually do? I assume it saves the position of the > splitview to user defaults? The behavior is documented, succinctly, here: http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/nss

Re: NSSplitView splitViewDidResizeSubviews

2009-03-03 Thread Benjamin Stiglitz
> Also, if I want to know when the user has completed the divider > movement, how would I find that out? I suspect I'd need to subclass > NSSplitView method that handles the mouse events... Yes; specifically, you should look at -mouseDown:, since NSSplitView runs an event loop instead of using

Re: NSSplitView splitViewDidResizeSubviews

2009-02-28 Thread Andrew Yeaton
This is normal behaviour. Generally you want to handle "live resizing", and these notifications allow for that. "splitViewWillResizeSubviews" happens before the actual resize happens and "splitViewDidResizeSubviews" happens after. I'll defer to someone else to answer your other question. O

Re: NSSplitView

2009-01-05 Thread David Blanton
Ok, I will look at RBSplitView. Thanks! On Jan 1, 2009, at 5:37 AM, Rainer Brockerhoff wrote: At 14:51 -0800 31/12/08, cocoa-dev-requ...@lists.apple.com wrote: From: David Blanton Date: Wed, 31 Dec 2008 15:22:49 -0700 Message-ID: How does one make a connected horiz-vert split view like in

Re: NSSplitView

2009-01-05 Thread Rainer Brockerhoff
At 14:51 -0800 31/12/08, cocoa-dev-requ...@lists.apple.com wrote: >From: David Blanton >Date: Wed, 31 Dec 2008 15:22:49 -0700 >Message-ID: > >How does one make a connected horiz-vert split view like in Xcode, you know, >one control point to size in both directions? RBSplitView does that automa

Re: NSSplitView

2008-12-31 Thread Sherm Pendley
On Dec 31, 2008, at 9:07 PM, Benjamin Dobson wrote: On 31 Dec 2008, at 22:53:46, David Blanton wrote: In Xcode 2.4.1 , debug view, all in one, the stack and vars are split, and below is source and there is one control point that moves the vert and horiz splitters Some Apple magic perhaps?

Re: NSSplitView

2008-12-31 Thread Benjamin Dobson
On 31 Dec 2008, at 22:53:46, David Blanton wrote: In Xcode 2.4.1 , debug view, all in one, the stack and vars are split, and below is source and there is one control point that moves the vert and horiz splitters Some Apple magic perhaps? I think posting a screenshot on the web would help

Re: NSSplitView

2008-12-31 Thread David Blanton
In Xcode 2.4.1 , debug view, all in one, the stack and vars are split, and below is source and there is one control point that moves the vert and horiz splitters Some Apple magic perhaps? On Dec 31, 2008, at 3:49 PM, Brandon Walkin wrote: If you're looking at the same split view as I am (ma

Re: NSSplitView

2008-12-31 Thread Brandon Walkin
If you're looking at the same split view as I am (main window), it appears that they're just using a horizontal split view as the right subview in a vertical split view. There doesn't seem to be a resize handle that adjusts both directions. On 31-Dec-08, at 5:22 PM, David Blanton wrote: Ho

Re: NSSplitView can't expand once collapsed

2008-11-12 Thread Qi Liu
Hi all, From apple leopard's release notes, I find this: http://developer.apple.com/releasenotes/Cocoa/AppKit.html#NSSplitView NSSplitView now uses -[NSView setHidden:] when collapsing and uncollapsing a subview instead of setting the origin of the subview's frame somewhere far, far way. O

Re: NSSplitView can't expand once collapsed

2008-11-11 Thread Qi Liu
Hi, At first, I think just as you mentioned, and I want to file a bug too. But the view being collapsed is not actually being collapsed, it is just being set *HIDDEN*, and its size remains unchanged. Suppose the splitview is horizontal and we have 2 views, leftView and rightView. We overrided t

Re: NSSplitView Question

2008-08-04 Thread Iain Houston
The TwoManyControllers sample code does what you want I think mostly generated from declarative as far as I can see On 4 Aug 2008, at 06:41, Graham Cox wrote: This is not any thing to do with NSSplitView as such. You're asking "how to implement a master-detail interface". Try doing searchin

Re: NSSplitView Question

2008-08-03 Thread Negm-Awad Amin
Am Mo,04.08.2008 um 07:35 schrieb Eric Lee: Sorry, I accidently did something wrong on that message. Here's the one I'm actually asking... How do you make a NSSplitView so that when you click something on one side, the other side is updated. For example, take the mail application. When

Re: NSSplitView Question

2008-08-03 Thread Graham Cox
This is not any thing to do with NSSplitView as such. You're asking "how to implement a master-detail interface". Try doing searching on those terms, phrase or a variation of it, I'm sure it's been well- covered. The essentials are - detect the selection change in the master view, use it t

Re: NSSplitview. Stopping the split moving

2008-06-14 Thread I. Savant
On Jun 14, 2008, at 7:31 PM, Markus Spoettl wrote: The split view prints debug logs when you do something that is completely wrong, so that helps. Well, in Leopard, anyway. -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: NSSplitview. Stopping the split moving

2008-06-14 Thread I. Savant
I have an NSplitview similar to Mails. I'm trying to fix the split so it doesn't move just like Mail but can't for the life of me figure out how to do it. My left split has an Outlineview and the right split a tableview. Resizing the window always moves the split upsetting the visual appear

Re: NSSplitview. Stopping the split moving

2008-06-14 Thread Markus Spoettl
On Jun 14, 2008, at 4:15 PM, Steven Hamilton wrote: I have an NSplitview similar to Mails. I'm trying to fix the split so it doesn't move just like Mail but can't for the life of me figure out how to do it. My left split has an Outlineview and the right split a tableview. Resizing the window