| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
However, the original problem proposed here sounds like it's just an image attachment, which would most easily be handled by a standard NSTextAttachment and the standard NSTextAttachmentCell that it automatically generates. In that case, the thing to do would be to set a baseline offset via NSBaselineOffsetAttributeName on the attachment character in the attributed string.
In TextEdit, you can manipulate this with the Font/Baseline/Raise and Lower menu items; if you're doing it programmatically, you can just directly set a value for the attribute on the text.
For those of you at WWDC, I'll be presenting an example of doing this programmatically in session 411.
| References: | |
| >NSDateFormatter not validating input (From: David Alter <email@hidden>) | |
| >NSTextViews with embedded pictures and vertical alignment (From: John Stiles <email@hidden>) | |
| >Re: NSTextViews with embedded pictures and vertical alignment (From: Nicko van Someren <email@hidden>) | |
| >Re: NSTextViews with embedded pictures and vertical alignment (From: Douglas Davidson <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.