NSScroller setFloatValue
NSScroller setFloatValue
- Subject: NSScroller setFloatValue
- From: Richard Salvatierra <email@hidden>
- Date: Tue, 1 Aug 2006 11:49:23 -0400
In a subclass of NSScrollView, I am resizing the bounds of an
NSClipView in an NSScrollView in order to "Zoom In" on my content where
Content = view with subView of actual content.
I want to set the scroll bars to the center position after I jump to
a scaled value. In other words, center
the content after zooming 50%. Ideally, I would like to call:
[NSScrollers setFloatValue; 0.5]; but this of course does not update
the clipView.
It have read to use: [[self contentView] scrollToPoint: NSMakePoint
(x,y)];
What would be the center point of the scaled bounds?
x = NSMidX([[self contentView] frame]);
y = NSMidY([[self contentView] frame]);
Thank you for your help.
-Rich
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden