Re: NSTextAttachment, MouseOver, GlyphPosition
Re: NSTextAttachment, MouseOver, GlyphPosition
- Subject: Re: NSTextAttachment, MouseOver, GlyphPosition
- From: Ross Carter <email@hidden>
- Date: Mon, 21 Feb 2011 17:14:07 -0500
On Feb 19, 2011, at 12:49 PM, Peter Krajčík wrote:
> What is a proper way to get cellFrame for NSTextAttachmentCell (or to be more general, position of glyph in NSAttributedString) that is inserted to NSAttributedString or drawn by NSTextFieldCell?
If you have subclassed NSTextAttachmentCell, and everything is working correctly, I would think you could get the value you need by overriding cellFrameForTextContainer:proposedLineFragment:glyphPosition:characterIndex to call super and noting the returned value._______________________________________________
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