• 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
How to handle document scaling in an NSRulerView Client?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to handle document scaling in an NSRulerView Client?


  • Subject: How to handle document scaling in an NSRulerView Client?
  • From: Carlos Eduardo Mello <email@hidden>
  • Date: Sat, 13 Dec 2008 02:33:48 -0200

Hi Everyone,

my app has a view inside a scroll view with a horizontal ruler. When setting up the ruler I do the following:

1. call "setHasHorizontalRuler"
2. register my custom measurement unit with + "registerUnitWithName..." and select that unit in the ruler.
3. then I call "setRulersVisible"


Now that part is OK, but when I need to rescale the document/client view, how can I make the ruler follow the changes.

I've been throught the reference docs and guides about rulers but found nothing related to rescaling the client. My only idea would be to unregister the custom unit and register a new one with the correct pixel/points ratio, then set the ruler to that new unit. But I couldn't find a way to do that...Do I need to through the original ruler away and create/setup a new one?

If anyone would be kind enough to throw some light into this I wouldd really appreciate it.

Carlos.


_______________________________________________

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


  • Follow-Ups:
    • Re: How to handle document scaling in an NSRulerView Client?
      • From: Dave Fernandes <email@hidden>
  • Prev by Date: how to let the NSOutlineview to display the line number?
  • Next by Date: Re: Encoding a Custom Object which has a CALayer instance Variable (newbie Question)
  • Previous by thread: Re: how to let the NSOutlineview to display the line number?
  • Next by thread: Re: How to handle document scaling in an NSRulerView Client?
  • Index(es):
    • Date
    • Thread