Mailing Lists: Apple Mailing Lists

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

Re: How to change scroll view size so it can scroll



Guillem Palou wrote:

I've been searching about scrollviews in the developer's page but i didn't
find what i was looking for. I'm creating a custom subclass of a scrollview.
This View will be used to show information like if it was a list. The
problem is that I cannot make the scrollbars appear.

Subclassing NSScrollView is an extremely rare need. Scroll views are primarily there to contain custom content, rather than to be customized. The way you get the scrollbars to appear is to make the frame of your custom view inside the scrollview larger than the scrollview.


G


_______________________________________________

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.