[Biococoa-dev] BCSequenceView

Koen van der Drift kvddrift at earthlink.net
Tue Mar 1 20:12:43 EST 2005

On Mar 1, 2005, at 7:55 PM, John Timmer wrote:

> So, with the caveat that I have no experience with this myself, have 
> you
> checked into NSLayoutManager?  It seems to be designed to display text 
> in
> custom formats.  It's probably more difficult than handling delegate
> messages and such, but it sounds like it's more capable for creating a 
> free
> standing solution, one that's not dependent upon how you connect 
> things up
> in the NIB.

The NSLayoutManager is for this case way too complicated. The problem 
is not drawing the line/symbol numbers, but the interaction with the 
controller. In my own app, I have solved it by using delegate methods, 
but sofar was trying to make BCSequenceView stand alone. But probably 
it wont hurt if I make it part of a MVC pattern. It is up to the user 
to call the correct methods to make it work with a controller. Just 
like we have to do when we eg implement an NSTable.

- Koen.

More information about the Biococoa-dev mailing list