• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextAttachment, MouseOver, GlyphPosition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSTextAttachment, MouseOver, GlyphPosition (From: Peter Krajčík <email@hidden>)

  • Prev by Date: Re: NSDocument Problems
  • Next by Date: Re: NSDocument Problems
  • Previous by thread: NSTextAttachment, MouseOver, GlyphPosition
  • Next by thread: Re: NSTextAttachment, MouseOver, GlyphPosition
  • Index(es):
    • Date
    • Thread