• 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
Re: Scrolling during zoom
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scrolling during zoom


  • Subject: Re: Scrolling during zoom
  • From: Graham Cox <email@hidden>
  • Date: Mon, 30 Jun 2008 10:01:01 +1000

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:
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:
This email sent to email@hidden


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

  • Prev by Date: Re: Is this still true?
  • Next by Date: Re: Thread safe reference counting
  • Previous by thread: Scrolling during zoom
  • Next by thread: CALayer and View Scaling
  • Index(es):
    • Date
    • Thread