• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSScrollView contentSize bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSTask vs. special characters
  • Next by Date: Re: Object Hierarchies
  • Previous by thread: Re: bindings, nested arrays and validation
  • Next by thread: EPS NSPrintOperation not working as set
  • Index(es):
    • Date
    • Thread