Re: Split View like the one in Mail.app
Re: Split View like the one in Mail.app
- Subject: Re: Split View like the one in Mail.app
- From: "I. Savant" <email@hidden>
- Date: Thu, 16 Mar 2006 08:48:00 -0500
Eric:
I've done this. You need the gradient bar image and the dimple
image. To be perfectly legal, you'd want to recreate them yourself,
but for testing purposes, copying the ones in Mail.app's resources
folder should help.
You need to subclass NSSplitView. The methods of interest are:
-dividerThickness (in case your bar image dimensions differ from
the default)
... and ...
-drawDividerInRect: (to draw your custom divider with dimple)
Remember, when drawing, you need to be aware of whether or not
your split view -isVertical and draw accordingly. Hope this helps.
--
I.S.
On Mar 16, 2006, at 8:27 AM, Eric Morand wrote:
Hi !
I've seen a lot of applications using the same kind of split view
than the one in Mail.app : no divider, but a "splitter" in one of
the subview that resize the subviews.
How can I achieve such a behavior ? There is nothing in NSSplitView
that allow me to change the divider position.
Any help appreciated,
Eric.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden