Re: Collapsing/expanding NSSplitView
Re: Collapsing/expanding NSSplitView
- Subject: Re: Collapsing/expanding NSSplitView
- From: Ken Ferry <email@hidden>
- Date: Mon, 26 Jan 2004 22:13:42 -0500
Hi,
This is actually not true, the 'collapse-state' of a subview is
something completely independent from its frame. You can verify this
by playing with NSSplitView and the isSubviewCollapsed method.
I've written a class for exactly what you're asking, Jeffrey. It's at
http://homepage.mac.com/kenferry/software.html#KFSplitView
-Ken
On Jan 25, 2004, at 5:40 PM, Daniel Todd Currie wrote:
As I understand it, the sizes of the constituent views of an
NSSplitView are set simply by adjusting the size of either of the
views. If you want to "collapse" the NSSplitView, just set the
width/height to 0 for the view you would like to hide. The API
handles the resizing of the other view.
// Daniel Currie
On 2004 Jan 25, at 13:55, Jeremy Dronfield wrote:
Can anyone point me in the direction of sample code for
programmatically expanding/collapsing split views? What I have in
mind as an ideal implementation is the "browse" subview in iTunes,
activated by a button.
There was a discussion of split view handling on this list about a
year ago, which gave the impression that several people were finding
the whole issue problematic. Have there been any improvements in
Panther?
-Jeremy
========================================
email@hidden
theLocustFarm.net:
- fractious fiction at http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.