15 #ifndef COCOA_LINE_TEXTFIELD_MM
16 #define COCOA_LINE_TEXTFIELD_MM
20 - (id)initWithFrame:(NSRect)frame {
21 self = [
super initWithFrame:frame];
23 [
self setTarget:self];
24 [
self setAction:@selector(textChanged:)];
40 -(void) computeMinWidth {
41 NSSize size = [
self neededTextSize];
42 if (size.width > 32.0)
57 -(void) textChanged:(
id)sender {
63 - (void)textDidChange:(NSNotification *)aNotification {
68 [
super textDidChange:aNotification];
71 - (void)setStringValue:(NSString *)aString {
72 [
super setStringValue:aString];
75 #pragma mark Protocoll Methods