Re: Design Q: custom control or Matrix?
Re: Design Q: custom control or Matrix?
- Subject: Re: Design Q: custom control or Matrix?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Fri, 2 Apr 2004 18:45:04 +0200
At 16:30 Uhr +0100 02.04.2004, Ken Tabb wrote:
I'm after a bit of advice. I'm implementing an NSControl subclass
which acts not unlike a simplified version of GarageBand's track
view (the bit that takes up most of the window, where you move /
resize loops).
(snippedy-doo-dah)
I read the NSMatrix docs, including the Cocoa Programming (Scott
Anguish et al.) sections on it, and it seemed initially as though
this wasn't suitable for my task. I wish I could remember why now,
as it would make my argument sound a whole lot more watertight. So I
undertook writing my own NSControl subclass, which manages mouse
events / cell selection etc.
I'd probably make an NSCell that manages one row and use an NSMatrix
in an NSScrollView for the entire list of rows. That way you don't
have to mess with more than one row, hit-testing etc. more than
necessary, and get a lot of stuff for free.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.