Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scrolling during zoom



Search the docs for -scrollRectToVisible: and -scrollToPoint:


G.

p.s. since I know you're doing this in DK, also look at DKDrawing's - scrollToRect: method, which you should use.


On 30 Jun 2008, at 9:17 am, James Maxwell wrote:

Hello All,

I've implemented a sort of "time zoom" for a music app I'm working on. Basically, it's just re-positioning objects along a musical staff when I click and drag up/down the screen (like in Live, or Logic... Soundtrack too, I think). However, if I'm in the middle of a score, the content I'm looking at quickly flies off the right side of window, because the zoom is obviously making "time" occupy more horizontal space, and shifting notes in the middle of the score off to the right. I'd basically just like to scroll the view in such a way as to keep the area of score I'm trying to zoom in on in view...
I'm sure it's not very complicated, but any help would be appreciated.


thanks,

J.
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Scrolling during zoom (From: James Maxwell <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.