Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSScrollView contentSize bug?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.