NSScrollView contentSize bug?
NSScrollView contentSize bug?
- Subject: NSScrollView contentSize bug?
- From: Ken Tozier <email@hidden>
- Date: Sun, 29 Apr 2007 21:01:28 -0400
Hi
I have a subclass of NSScrollView that sets a few variables on itself
at init time
- (id) initWithFrame:(NSRect) inFrame
{
self = [super initWithFrame: inFrame];
if (self)
{
[self setAutohidesScrollers: YES];
[self setHasHorizontalScroller: NO];
[self setHasVerticalScroller: YES];
[[self verticalScroller] setControlSize: NSSmallControlSize];
}
return self;
}
What I'm finding, is that when other views call the scrollview's
contentSize method, it's returning a rectangle smaller in the
vertical dimension by the height of the nonexistent horizontal scroll
bar. I imagine this is a well known "feature" but is there a
workaround that's not too kludgy?
TIA
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden