[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
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
> 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
> 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
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
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
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
On Nov 8, 2014, at 8:19 AM, Luther Baker lutherba...@gmail.com 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?
Thanks Ken.
On Sat, Nov 8, 2014 at 9:02 AM, Ken Thomases k...@codeweavers.com wrote:
On Nov 8, 2014, at 8:19 AM, Luther Baker lutherba...@gmail.com wrote:
Is there a direct way to determine the positions of the dividers in
NSSplitView.
No.
If not, are most people calculating this by
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 you?
On Oct 30, 2014, at 12:34 PM, Seth Willits sli...@araelium.com 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?
On Oct 30, 2014, at 10:45 AM, edward taffel etaf...@me.com 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.
On Oct 30, 2014, at 1:42 PM, Keary Suska cocoa-...@esoteritech.com 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
On Oct 30, 2014, at 11:19 , edward taffel etaf...@me.com 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
On Oct 30, 2014, at 3:19 PM, Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
On Oct 30, 2014, at 11:19 , edward taffel etaf...@me.com
mailto:etaf...@me.com wrote:
i agree! do you feel it should always track? [anyone else?]
There’s an argument that says it should change
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.
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
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 chu...@veladg.com wrote:
I'm trying to
Hi Chuck,
On Jun 26, 2013, at 8:30 PM, Chuck Soper chu...@veladg.com 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
On 21/05/2013, at 6:39 PM, Trygve Inda cocoa...@xericdesign.com 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
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
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 working
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
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
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
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
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
On 05/01/2013, at 12:16 AM, koko k...@highrolls.net 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
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,
On 2012 Aug 20, at 14:14, Kevin Perry kpe...@apple.com 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
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
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
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
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 su...@bezeqint.net
Message-ID: febf43ca-6986-4413-91eb-e0cdbccf6...@bezeqint.net
Thanks for the note. Indeed, RBSplitView is a complete, functional and
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
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 su...@bezeqint.net wrote:
Thanks Graham (Sigh…)
I was beginning to think I'm stupid or
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
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. Rolling out my
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 graham@bigpond.com
Message-ID: fc2c946d-c21d-4dd5-aa69-3756aadec...@bigpond.com
On 03/07/2012, at 12:21 AM, Motti Shneor wrote:
I really need an advice here.
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
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
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
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
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:
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
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
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
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
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
It overrides -[NSView hitTest:] to return self for clicks inside the draggable
region.
-KP
On Mar 26, 2012, at 10:30 AM, Markus Spoettl ms_li...@shiftoption.com wrote:
Hello all,
does anyone know how to grab the cursor like NSSplitView does? It somehow
manages to know that the cursor is
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
___
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
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
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
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
|
On Sep 19, 2010, at 11:55 AM, jonat...@mugginsoft.com
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
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 hsfouga...@mac.com wrote:
I have placed a NSSplitView inside a NSScrollView in code.
However, when the user resizes one of the
On Thu, Oct 15, 2009 at 1:31 AM, Harry Sfougaris hsfouga...@mac.com 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
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
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:
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
On Wednesday, August 26, 2009 8:22:24 PM, Brandon Walkin bwal...@gmail.com
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
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 I
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.
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
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
Yes I have tried that, to no avail.
Sent from my iPhone
On 2009.07.29., at 3:46, Graham Cox graham@bigpond.com 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
On Sat, May 30, 2009 at 11:22 PM, Erg Consultant
erg_consult...@yahoo.com wrote:
What does setAutosaveName actually do? I assume it saves the position of the
splitview to user defaults?
The behavior is documented, succinctly, here:
6:19:13 AM
Subject: Re: [ NSSplitview ] -setAutosaveName
On Sat, May 30, 2009 at 11:22 PM, Erg Consultant
erg_consult...@yahoo.com 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
On Sun, May 31, 2009 at 4:02 PM, Erg Consultant
erg_consult...@yahoo.com 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
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: .
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
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.
On Feb
At 14:51 -0800 31/12/08, cocoa-dev-requ...@lists.apple.com wrote:
From: David Blanton aired...@tularosa.net
Date: Wed, 31 Dec 2008 15:22:49 -0700
Message-ID: b7a7547f-e5ab-437f-8ca8-f62faba05...@tularosa.net
How does one make a connected horiz-vert split view like in Xcode, you know,
one
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 aired...@tularosa.net
Date: Wed, 31 Dec 2008 15:22:49 -0700
Message-ID:
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:
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
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
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
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.
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
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
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 searching
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 to
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
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
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)
87 matches
Mail list logo