Re: create custom control same as multiple monitor control that manages monitors windows
Re: create custom control same as multiple monitor control that manages monitors windows
- Subject: Re: create custom control same as multiple monitor control that manages monitors windows
- From: "I. Savant" <email@hidden>
- Date: Mon, 12 Jan 2009 11:32:39 -0500
On Mon, Jan 12, 2009 at 11:17 AM, Paul Bruneau
<email@hidden> wrote:
> You know, it's funny, when I first started my first Cocoa project as a total
> Cocoa newb I wanted to use controls/cells for my rectangles but I was
> strongly advised against it by very highly regarded Cocoa gurus.
:-) I can see the argument for that in certain circumstances.
> Maybe it's because my project could have hundreds of rectangles in a single
> view and the gurus were concerned about all the overhead?
... this being one of them. It's probably easiest to do it with a
custom view because, to do it with cells, you have to build a more
complicated control like NSTableView. Its data cell is reused (to
avoid creating potentially astronomical numbers of cells just for
drawing).
It really would depend on the situation and the comfort level
involved. My point, however, was that the "standard way" would be to
use the control/cell mechanism. Perhaps the Cocoa guru in question was
generalizing. :-)
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden