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: William Squires <email@hidden>
- Date: Mon, 03 Sep 2012 17:06:56 -0500
This would be better handled with some sort of filter applied at I/O time (i.e. when you read/write the file) I would think. That is, let your model objects handle the translation, and let the view objects do what view objects are supposed to do. Trying to fiddle around with low-level NSTextStorage just seems to be a way to waste several afternoons pulling out your hair in frustration, methinks!
On Aug 31, 2012, at 10: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.
>
> Thanks,
> _______________________________________________
>
> 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