• 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: Linearly Scaling Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linearly Scaling Text


  • Subject: Re: Linearly Scaling Text
  • From: Ajay Sabhaney <email@hidden>
  • Date: Sun, 29 May 2011 21:31:14 -0600

Thanks Kyle, that's quite helpful.

We were initially hesitant to add the NSTextView directly to the layer-hosted view, however the following thread consoled us a little, especially since we were able to get geometry working correctly:
http://www.mail-archive.com/email@hidden/msg21959.html

I'm going to try implementing a hierarchy similar to yours as it seems cleaner. The biggest issue I foresee is zooming in our application. Because the user can continually zoom (kind of like Google Maps), re-rendering the text at each zoom level will not only be expensive in terms of performance, but also will be "jumpy" since it is difficult to scale text linearly (in both the CALayer and the field editor), which goes back to the issue I mentioned in my original post.  Instead, using a hierarchy similar to yours, I hope I will be able to accomplish the following:

- Use a CALayer that has a text representation image that is constrained to the bounds of the layer, so that zooming is smooth. (No problems here - we already do this)
- When the user requires editing of a text box, we will add/show a scales layer-backed NSTextView.  I hope that there are no issues scaling an NSTextView that is layer-backed (either using NSView's scaleUnitSquareToSize method, or the bounds manipulation approach that TextEdit uses).

I will try this out and post my results on this thread.

PS. The OmniPlan beta is looking good!_______________________________________________

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: Linearly Scaling Text
      • From: Ajay Sabhaney <email@hidden>
References: 
 >Linearly Scaling Text (From: Ajay Sabhaney <email@hidden>)
 >Re: Linearly Scaling Text (From: Douglas Davidson <email@hidden>)
 >Re: Linearly Scaling Text (From: Ajay Sabhaney <email@hidden>)
 >Re: Linearly Scaling Text (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: A Return NSString Problem
  • Next by Date: getObjectValue:forString:range:error: not behaving as expected?
  • Previous by thread: Re: Linearly Scaling Text
  • Next by thread: Re: Linearly Scaling Text
  • Index(es):
    • Date
    • Thread