| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Text attachments in the form of a NSTextAttachment need provide an object that conforms to the NSTextAttachmentCell protocol which will be used to draw the attachment representation and handle clicks. The protocol has the following method:
- (NSPoint)cellBaselineOffset
Returns the position where the attachment cell's image should be drawn in text, relative to the current point established in the glyph layout. The image should be drawn so its lower-left corner lies on this point.
At a guess if you make this return a point with a negative Y value then when the cell is laid out it will be placed descending below the text base line. I've not tried it however...
| 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>) |
| 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.