[Biococoa-dev] strider and gck format
Alexander Griekspoor
mek at mekentosj.com
Sun Mar 26 03:56:14 EST 2006
It certainly is familiar, still I did not took it from any
samplecode, so guess I reinvented the wheel ;-)
Anyway, I don't see the problems he describes where lines start to
shift, they probably fixed that...
Cheers,
Alex
On 26-mrt-2006, at 6:06, Koen van der Drift wrote:
>
> On Mar 25, 2006, at 10:35 AM, Alexander Griekspoor wrote:
>
>> - (NSRect)lineFragmentRectForProposedRect:(NSRect)proposedRect
>> sweepDirection:(NSLineSweepDirection)sweepDirection
>> movementDirection:(NSLineMovementDirection)movementDirection
>> remainingRect:(NSRect *)remainingRect
>> {
>> // create space for the linenumber margin
>> if(proposedRect.origin.x <= 0.0)
>> proposedRect.origin.x = kLEFT_MARGIN_WIDTH;
>>
>> // set the width of a column of text
>> proposedRect.size.width = columnWidth;
>>
>> // make sure we nicely break after a full column
>> if (proposedRect.origin.x + 2 * columnWidth - 20.0 >= [self
>> containerSize].width) *remainingRect = NSZeroRect;
>> else {
>> remainingRect->origin.x = proposedRect.origin.x +
>> columnWidth - 10.0;
>> remainingRect->origin.y = proposedRect.origin.y;
>> remainingRect->size.width = [self containerSize].width -
>> proposedRect.origin.x + columnWidth - 10.0;
>> remainingRect->size.height = proposedRect.size.height;
>> }
>>
>> return proposedRect;
>> }
>>
>
>
> More people seem to have had problems with that code, see http://
> www.cocoabuilder.com/archive/message/cocoa/2003/5/1/4403 (hmm, that
> code looks very familiar ;-) It was even suggested it is a system
> bug, but that was posted 3 years ago, so I would expect it to be
> fixed already.
>
> - Koen.
> _______________________________________________
> Biococoa-dev mailing list
> Biococoa-dev at bioinformatics.org
> https://bioinformatics.org/mailman/listinfo/biococoa-dev
>
*********************************************************
** Alexander Griekspoor **
*********************************************************
The Netherlands Cancer Institute
Department of Tumorbiology (H4)
Plesmanlaan 121, 1066 CX, Amsterdam
Tel: + 31 20 - 512 2023
Fax: + 31 20 - 512 2029
AIM: mekentosj at mac.com
E-mail: a.griekspoor at nki.nl
Web: http://www.mekentosj.com
The requirements said: Windows 2000 or better.
So I got a Macintosh.
*********************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bioinformatics.org/pipermail/biococoa-dev/attachments/20060326/61af148e/attachment.html>
More information about the Biococoa-dev
mailing list