bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bugs #9789] - cellFrameForText... in NSTextAttachmentCell is called rec


From: Yen-Ju Chen
Subject: [bugs #9789] - cellFrameForText... in NSTextAttachmentCell is called recursively
Date: Tue, 27 Jul 2004 11:48:00 -0400
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.2 (KHTML, like Gecko) Safari/125.8

This mail is an automated notification from the bugs tracker
 of the project: GNUstep.




/**************************************************************************/
[bugs #9789] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9789>
Project: GNUstep
Submitted by: Yen-Ju Chen
On: Tue 07/27/2004 at 15:43

Category:  Gui/AppKit
Severity:  5 - Average
Item Group:  Bug
Resolution:  None
Assigned to:  None
Status:  Open


Summary:  - cellFrameForText... in NSTextAttachmentCell is called recursively

Original Submission:  If a subclass of NSTextAttachmentCell returns
-cellFrameForTextContainer:proposedLineFragment:glyphPosition:characterIndex:
with a height of NSRect which is exactly the same as the height of the 
proposedLineFragment,
this method will be called recursively and the height of proposedLineFragment 
keep increasing.

An example looks like this:

- (NSRect) cellFrameForTextContainer: (NSTextContainer *)c
                proposedLineFragment: (NSRect) lf
                glyphPosition: (NSPoint) p
                characterIndex: (unsigned int) ci
{
  return NSMakeRect(0, 0, lf.size.width-10, lf.size.height);
}

It can be verified in HelpViewer.app by changing the return NSRect in HRCell.m











For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=9789>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]