Displaying new attribute types in NSTextView
Displaying new attribute types in NSTextView
- Subject: Displaying new attribute types in NSTextView
- From: Charles Jolley <email@hidden>
- Date: Sun, 29 Jul 2001 12:27:54 -0500
Hi:
I am working on a program that uses NSTextView to allow the user to
edit and display text. I would like to add support for displaying
several new attributes that I will add to the NSTextStorage attributed
string. For example:
1. Paragraph spacing (already supported in NSParagraphStyle and even RTF
read/write, but does not get rendered!)
2. Strikethrough
After considerable searching, I've found that the place to add
display support for new attributes begins with NSLayoutManager.
However, the documentation is incomplete and the header files make
reference to several classes (NSRulebook, NSGlyphGenerator, and their
related classes) that do not appear to be public.
So I need some guidance as to what I am supposed to do here. Am I
going down the wrong path? Is some alternative approach I should be
taking? Or is this a matter of Cocoa being incomplete in this aspect
and this support will be made available in a future release of the
framework? (as it appears.)
If the later is the case, can anyone give me some rough,
non-binding, estimate on how long it will be until these features are
available? I am a Select ADC member; is there any chance of me getting
hold of some prerelease so I can begin work on this?
Thanks,
-Charles