On 2004-04-01 14:18:41 +0700 Markus Hitter <[EMAIL PROTECTED]> wrote:


Am 01.04.2004 um 04:29 schrieb anonymous:


Summary: when using asubclass of NSButton in gorm, initWithFrame in the subclass is not called

This 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
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep






_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to