[Biococoa-dev] strider and gck format

Koen van der Drift kvddrift at earthlink.net
Sun Mar 19 18:34:55 EST 2006


One thing that the BCSequenceView will also need (or actually maybe  
its controller) is a method that checks whether what the user types  
is part of the symbolset of the sequence. If the controller does  
that, it's probably needed in a delegate method, such as

- (BOOL)textView:(NSTextView *)aTextView
		replacementString:(NSString *)replacementString

And also a way to change every typed letter to uppercase/lowercase  

Alex, I will look into the bug - that is indeed very weird, and  
difficult to debug :(  However, the fact that it only is for the  
first 10 characters, which is hardecoded in the default value of 90  
for the columnwidth, could give a clue.


- Koen.

On Mar 19, 2006, at 11:08 AM, Alexander Griekspoor wrote:

> 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:  
> 12.0]];
> 	[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 greatful!
> Cheers,
> Alex
> 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)
>      MekenTosj.com
> Web: http://www.mekentosj.com
> Mail:  mek at mekentosj.com
> ***********************************

More information about the Biococoa-dev mailing list