Re: How to insert a "screen-only" character in an NSTextView?
Re: How to insert a "screen-only" character in an NSTextView?
- Subject: Re: How to insert a "screen-only" character in an NSTextView?
- From: Koen van der Drift <email@hidden>
- Date: Sat, 01 Sep 2012 23:22:27 -0400
Not yet there, but as a follow up question, how do I get the width of a monospaced font? I need this to calculate the rect that a textcontainer needs for x amount of fonts.
- Koen.
On Aug 31, 2012, at 4:55 PM, Ross Carter <email@hidden> wrote:
> Or a custom NSGlyphGenerator. There was a WWDC session on this a few years back.
>
>
>
> On Aug 31, 2012, at 2:21 PM, Kyle Sluder <email@hidden> wrote:
>
>> On Fri, Aug 31, 2012, at 08:24 AM, Koen van der Drift wrote:
>>> Is it possible to insert character/glyphs in an NSTextView without
>>> changing the underlying NSTextStorage ? The goal is to have some
>>> special characters (eg a hyphen) at specific places in the string that
>>> is displayed in the view. So when the data is saved, the special
>>> characters are not part of it.
>>
>> Glyphs aren't part of the text storage. So you would create a custom
>> typesetter, hook it up to the layout manager of the text view you use
>> for on-screen drawing, and have it generate additional glyphs.
>>
>> --Kyle Sluder
>> _______________________________________________
>>
>> 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