Re: need some direction
Re: need some direction
- Subject: Re: need some direction
- From: Stéphane Sudre <email@hidden>
- Date: Sun, 4 Sep 2005 21:09:44 +0200
On dimanche, septembre 4, 2005, at 07:51 PM, Jeff Childers wrote:
What I would like to do.
have a splitview the right frame is constrained in increments ( I
don't want a horizontal scroll bar )
if the content of the right view is smaller than the view size hide
the vertical scroll bar and adjust the right splitview frame > according.
I have written each seperately
1. hiding the scroll bar. I ended up just hiding it behind splitview
edge so where the scroll was isn't blank
2. constraining the splitview divider including window resizing and
zooming,
3. dragging and dropping into a nsview
the main problem is letting all the classes know what is happening
so they can act accordingly.
they are so tied together that I am not sure I should be sub classing
NSView, NSScrollView and NSSplitView
maybe just do a delegate class and handle everything that way.
Can someone offer some advice or point me to something similar?
1. Which scroller are you hiding? The vertical one? Can't you just
enable the autohide feature? Do you need to support Mac OS X 10.2 and
older?
2. This is a job for a delegate
3. This looks like a job for a subclass.
_______________________________________________
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