NSButtonCell subclass not working
NSButtonCell subclass not working
- Subject: NSButtonCell subclass not working
- From: Andrew Merenbach <email@hidden>
- Date: Tue, 15 Oct 2002 16:37:56 -0700
I posted a query to the list a few days ago, but it was perhaps a bit
too general. I have further narrowed down a problem in my program:
My program has a periodic table of the elements, which I want colored.
I have a subclass of NSButtonCell (I call it CBElementButtonCell) that
draws in all the relevant data--atomic symbol and number. Each color
of button cell has its own subclass of CBElementButtonCell, in which I
override drawInteriorWithFrame:. With the old nib file format, this
works fine. With the new nib file format, however, it fails, giving me
an exception in setFrame:, which I do not directly make use of at all.
This has affected another custom button cell subclass, and switching to
the old nib file format causes the error to go away. But I would like
to switch to the new format, so I'd appreciate any information anyone
can offer.
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.