On Aug 20, 2010, at 1:35 PM, Quincey Morris wrote: > On Aug 20, 2010, at 06:46, Brian Postow wrote: > >> Ok,. Since the NSImageView wants to always center the image in the bounds >> rect, that should make the translation (moving the origin) not too hard, yes? > > Yes, though I'd say it differently. What's important is the size of the > document view, and where its frame is positioned within the bounds rect of > the content (clip) view. That's because zooming has an impact on the limits > and scroll position of the scroll bars. >
ok, it appears that it's a little more complicated that that. I just discovered [imageView setImageAlignment: ] which, as long as the imageView is bigger than the scrollview, does the correct thing (Lock the image to the upper left corner of the scrollView). However, when the imageView is smaller than the scrollview, The imageView is still locked to the bottom left of the scrollview, but the image is locked to the top left of the imageview. Setting the Scrollview boundsOrigin, the imageView bounds origin and translating the origin of the imageview or the scrollview had absolutely no effect. do I need to do something (other than setNeedsDisplay: YES) in order to make a translate actually happen? Brian Postow Senior Software Engineer Acordex Imaging Systems _______________________________________________ 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