|
From: | Rob Burns |
Subject: | Re: [bugs #8404] when using asubclass of NSButton in gorm, initWithFrame in the subclass is not called |
Date: | Thu, 01 Apr 2004 21:15:28 +0700 |
On 2004-04-01 14:18:41 +0700 Markus Hitter <mah@jump-ing.de> wrote:
Am 01.04.2004 um 04:29 schrieb anonymous:Summary: when using asubclass of NSButton in gorm, initWithFrame in the subclass is not calledThis is correct behaviour because an archived button is already initialised. Use -awakeFromNib instead. This matches behaviour in OS X as well.
I've changed the code to use awakeFromNib for initialization. The docs, however say that initWithFrame is the designated initializer for NSButton subclasses. I don't know if that has any bearing on this. The remaining problem is setting the Cell to a custom subclass of NSButtonCell. I've implemented +(void) initialize and +(void) cellClass: to do this, but neither one of these methods has any effect. Are you supposed to be able to set the cell class from within IB/Gorm? I don't have a mac here to test with.
Thanks Rob
Markus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ _______________________________________________ Bug-gnustep mailing list Bug-gnustep@gnu.org http://mail.gnu.org/mailman/listinfo/bug-gnustep
[Prev in Thread] | Current Thread | [Next in Thread] |