• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSScroller setFloatValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Copying large files with progress indicator
  • Next by Date: Re: problem with use of timeout property of Finder in applescript
  • Previous by thread: Re: Copying large files with progress indicator
  • Next by thread: Why multiple calls to an IB palette inspector's 'revert' method?
  • Index(es):
    • Date
    • Thread