Improvement of attributed string loading and attachment display in text

view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27705 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2009-01-27 19:16:04 +00:00
parent 0039705817
commit a8bda5f526
6 changed files with 324 additions and 243 deletions

View file

@ -4810,8 +4810,13 @@ other than copy/paste or dragging. */
if (cell != nil)
{
/* TODO: Where to get the cellFrame? */
NSRect cellFrame = NSMakeRect(0, 0, 0, 0);
NSRect cellFrame;
cellFrame.origin = [_layoutManager
locationForGlyphAtIndex: startIndex];
cellFrame.size = [_layoutManager
attachmentSizeForGlyphAtIndex: startIndex];
cellFrame.origin.y -= cellFrame.size.height;
/* TODO: What about the insertion point ? */
if ([cell wantsToTrackMouseForEvent: theEvent