Hi, one of the ways could be to use own NSLayoutManager and use it to draw NSAttributed string in my subclass of NSTextAttachmentCell and its draw method. NSLayoutManager has boundingRectForGlyphRange:inTextContainer: method from which I could obtain bounds of glyph representing NSTextAttachment at position I am interested in. I can use this method to get rectangles of all attachments in my updateTrackingAreas method.
Does anybody see this as the right way ? Peter _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com