Re: Buttons next to NSScroller
Re: Buttons next to NSScroller
- Subject: Re: Buttons next to NSScroller
- From: Alain Schartz <email@hidden>
- Date: Tue, 28 Aug 2007 02:36:36 -0700
Felix this is exactly what I've been looking for.
Thanks !
Alain
On Tuesday, August 28, 2007, at 11:25AM, "Felix Franz" <email@hidden> wrote:
>On Aug 28, 2007, at 11:09 AM, Alain Schartz wrote:
>
>> Morning List,
>>
>> I'm implementing a scroll view and I wanted to add mini-buttons
>> next to the horizontal NSScroller (similiar to the "Selection",
>> "Line", "Zoom" and "Scroll Canvas" buttons in Xcode's data
>> modeller). Having found nothing in the documentation (besides
>> NSRuler) I was wondering whether I'll have to create these buttons
>> "by hand", and before starting doing this I wanted to ask more
>> knowledgeable guys (read: you) if I did not simply overlook
>> something...
>
>Take a look at the source code of TextEdit (/Developer/Examples/
>AppKit/TextEdit).
>Overwrite the -tile method in a subclass of NSScrollView to place
>your additional
>controls and move the scrollers accordingly. (ScalingScrollView.m in
>TextEdit).
>
>Cheers,
>
>felix
>
>
>
>
_______________________________________________
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