• 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: How to insert a "screen-only" character in an NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to insert a "screen-only" character in an NSTextView?


  • Subject: Re: How to insert a "screen-only" character in an NSTextView?
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 31 Aug 2012 11:21:42 -0700

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

  • Follow-Ups:
    • Re: How to insert a "screen-only" character in an NSTextView?
      • From: Ross Carter <email@hidden>
References: 
 >How to insert a "screen-only" character in an NSTextView? (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: Ordering of Completion Handlers
  • Next by Date: Re: Crash in Mountain Lion
  • Previous by thread: How to insert a "screen-only" character in an NSTextView?
  • Next by thread: Re: How to insert a "screen-only" character in an NSTextView?
  • Index(es):
    • Date
    • Thread