[Biococoa-dev] strider and gck format

Alexander Griekspoor mek at mekentosj.com
Sun Mar 19 11:08:48 EST 2006

Hi Koen,

The columnwidth parameter is exactly that, it's not the spacing, it  
determines the space for characters. The default of 90 matches  
exactly 10 courier 12 characters. Here's the awakefromnib stuff I use:

	[sequenceTextView setSelectedTextAttributes: [NSDictionary  
dictionaryWithObjectsAndKeys: [NSColor colorWithCalibratedRed:  
178.0 / 255.0 green: 198.0 / 255.0 blue: 223.0 / 255.0	alpha: 1.0],  
NSBackgroundColorAttributeName, nil]];
     [sequenceTextView setContinuousSpellCheckingEnabled: NO];
	[sequenceTextView setFont: [NSFont fontWithName: @"Courier" size:  
	[sequenceTextView setUnit: @"bp"];

Now it would indeed by logical (and a future plan), that the  
columnwidth is not a property but is calculated based on the current  
font. Then the number of characters per column would be a nice  
property to add. This was outside the current scope for me though.

One other thing, there seems to be a bug in the textview that if you  
have less than one row of text, you can't select any of the first 10  
characters, if you would find the fix for this bug I would be very  

On 19-mrt-2006, at 16:11, Koen van der Drift wrote:

> On Mar 19, 2006, at 5:57 AM, Alexander Griekspoor wrote:
>> Great work Koen! Nice!
>> Alex
>> On 18-mrt-2006, at 15:30, Koen van der Drift wrote:
>>> Hi,
>>> I have just updated the Translation demo, and added the openPanel  
>>> code from the BCAppDemo to import files. It now works with the  
>>> strider format.
>>> Next is to merge KDTextView with BCSequenceView.
> Alex,
> How can I control the number of symbols in the column view (in the  
> KDTextView) ? It would be nice to make that variable, eg my  
> preference would be to have 10 symbols in one column. You already  
> added a method setColumnWidth, but I don't see anything similar for  
> the number of symbols. We should also be careful that we don't hard- 
> code the dimensions of the column (and the overlay), because the  
> user may want to change the fonttype and -size.
> cheers,
> - Koen.

Mek (Alexander Griekspoor)
Web: http://www.mekentosj.com
Mail:  mek at mekentosj.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bioinformatics.org/pipermail/biococoa-dev/attachments/20060319/ab8e97da/attachment.html>

More information about the Biococoa-dev mailing list