On 29 Jun 2010, at 2:14 PM, Joshua Tucker wrote:

> could someone please explain how I can subclass a UIScrollView, so I can do 
> things like drawRect: etc.

1. To simple-mindedly answer your question, you just declare your class, in its 
main @interface, to be a subclass of UIScrollView. Then implement your methods.

2. What user-visible behavior are you trying to produce? Maybe there's a way to 
do it that doesn't involve hacking a scroll view. Subclassing system facilities 
is fairly rare in Cocoa (unless it's invited, as with UIView), and if you're 
tempted, it's time to double-check to see if there isn't another way to do it.

What do you want to see on the screen?

        — F

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to