Re: Classes vs. custom palettes
Re: Classes vs. custom palettes
- Subject: Re: Classes vs. custom palettes
- From: "Erik J. Barzeski" <email@hidden>
- Date: Fri, 23 Aug 2002 08:58:00 -0400
Hi,
On 8/22/02 5:27pm, "email@hidden"
<email@hidden> wrote:
>
From: Andrew Merenbach <email@hidden>
>
Date: Thu, 22 Aug 2002 10:17:30 -0700
>
To: email@hidden
>
Subject: Classes vs. custom palettes
>
>
In my periodic table program, I currently have a giant NSMatrix filling
>
the window, with certain buttons cells transparent and disabled (so they
>
won't be seen or interacted with), and the other cells forming the
>
table. The elements themselves are in subclasses of NSButtonCell--one
>
class for each of twelve different colors. I have taken a look at Aaron
>
Hillegass' book, "Cocoa Programming for Mac OS X," and I stumbled upon
>
an idea. Instead of using lots of classes for the different buttons,
>
why not give the buttons their own IB Palette? Then I could even
>
program them to have their colors set in IB, thus reducing the number of
>
button cell subclasses.
Why, if you have a matrix working, would you want to wire up 110 actions and
outlets?
You can set a custom class in IB - which is what I'd recommend - without
going to the trouble of creating an IB palette.
>
I don't plan on necessarily releasing this IB palette to the public, and
>
my question is: I haven't found anything on whether or not my program
>
would take a performance hit from using this palette idea. Is there any
>
advantage to sticking with multiple button cell subclasses?
>
>
Take care,
>
Andrew Merenbach
--
Best wishes,
Erik J. Barzeski
Home is where you hang your @
###################################################################
Email: erik@(anything below) AIM: iacas
http://iacas.org http://weims.net
http://techstra.net http://barzeski.com
http://cocoadevcentral.com http://soundsetcentral.com
http://freshlysqueezedsoftware.com http://applescriptcentral.com
###################################################################
_______________________________________________
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.