Problem adding subview to NSScroller subclass
Problem adding subview to NSScroller subclass
- Subject: Problem adding subview to NSScroller subclass
- From: Gideon King <email@hidden>
- Date: Sat, 07 Jul 2012 18:38:29 +1000
Hi all, I am creating a subclass of NSScroller so that I can add an accessory view. I have worked out the position to add it, and added it as a subview, but it is never drawn.
I have overridden the rectForPart: method to adjust the scroller size, and that leaves the gap as it should.
I overrode the drawSelf: method and got it to draw the frame of the accessory view, to make sure it was positioned correctly, and it drew in the right place.
Any ideas what I might be missing? Has anybody successfully added a subview to an NSScroller?
Thanks
Gideon
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden