Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Displaying new attribute types in NSTextView



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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.