The -initWithCoder: method of GSTextViewTemplate in GSNibTemplates
invokes
the -initWithFrame:textContainer: initializer on self if the custom
subclass
of NSTextView implements that method. Unfortunately, this leads to a
double
initialization of instances and, in particular, any
, November 20, 2008 4:25:05 PM
Subject: Double initialization of custom (text) views in Gorm files
The -initWithCoder: method of GSTextViewTemplate in GSNibTemplates invokes
the -initWithFrame:textContainer: initializer on self if the custom subclass
of NSTextView implements that method. Unfortunately
PROTECTED]; gnustep-dev@gnu.org
Sent: Thursday, November 20, 2008 7:44:03 PM
Subject: Re: Double initialization of custom (text) views in Gorm files
Wolfgang,
These are what are known as designated initializers they are called on
objects when a nib is instantiated on instances of custom classes only
@gnu.org
Sent: Thursday, November 20, 2008 8:04:11 PM
Subject: Re: Double initialization of custom (text) views in Gorm files
Actually, sorry... from looking at this it seems that you're correct:
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaViewsGuide/SubclassingNSView