Button cell palette
Button cell palette
- Subject: Button cell palette
- From: Andrew Merenbach <email@hidden>
- Date: Fri, 15 Nov 2002 22:29:33 -0800
I have about a dozen NSButtonCell subclasses, each of which draws a
button in a different color (for a periodic table of the elements,
which lays out the table in an NSMatrix). Instead of using all those
classes, which are cumbersome, I'd like to create an IB palette that
will allow me to create a "PTMatrix" which will can and will be filled
with only a single NSButtonCell subclass. One other thing makes this a
bit more complicated: this subclass must have a custom inspector in the
info window, so I can set the color of each cell individually in IB.
I've had limited success with the IB palette examples and the tutorial
from Aaron Hillegass' book, and any pointers would be appreciated.
(For example, will I need to create not one, but *two* IB palettes, one
for the matrix and one for its cells?)
Take care,
Andrew Merenbach
_______________________________________________
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.