When I implemented a scalable teleprompter screen in MacOS, I did it by rendering the text in a narrow view that was scaled down by the scale factor, then scaled the view up to fill the containing view. With a little work, it was fully editable. I was not using CALayers at the time. When I tried to do the same on iOS, in which every view is layer backed, the layer scaled with the view and resulted in blocky text, definitely not what I wanted. Because it was mono-Font text, I resorted to scaling the font instead.
Later, because of view size limitations on layer-backed views in iOS, I implemented a tiled view. I never went back to view scaling, but I wonder if you could control the granularity of the involved CALayers such that a tiled view would produce a clean result when scaled up? Just a thought. On 5/30/11 12:30 PM, "cocoa-dev-requ...@lists.apple.com" <cocoa-dev-requ...@lists.apple.com> wrote: > > My view isn't even zoomable, but if the text in the textview doesn't > completely fit in the box, when I go to edit it goes from a perfectly legible > "long string with ..." to a very fuzzy "long string with truncation". I'm > half-tempted to just make it non-editable. > > ----- Original Message ----- > From: "Ajay Sabhaney" <co...@mothercreative.com> > To: "Kyle Sluder" <kyle.slu...@gmail.com> > Cc: "cocoa-dev List" <cocoa-dev@lists.apple.com> > Sent: Monday, May 30, 2011 1:21:31 AM > Subject: Re: Linearly Scaling Text > >> > 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). > > Unfortunately, there seems to be issues with scaling an NSTextView in a > layer-backed hierarchy as well - I am encountering the same, somewhat garbled > drawing of the editor, as mentioned in my previous posts. I'll file a radar > with Apple. > > Any suggestions as to how to implement an editable text box in a zoomable, > Core Animation layer-backed or layer-hosted hierarchy, would be much > appreciated. _______________________________________________ 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