26 [textField setEnabled:(value==0)?NO:YES];
30 if ([textField window]) {
31 [[textField window] makeFirstResponder:textField];
36 NSRect frame = [textField frame];
37 frame.size.width = value;
38 [textField setFrame:frame];
43 NSRect frame = [textField frame];
44 frame.size.height = value;
45 [textField setFrame:frame];
55 "Function is not appropriate for this type of widget (%s)",
75 return ([textField isEnabled])?1:0;
79 if ([textField window]) {
80 if ([[textField window] firstResponder] == textField)
return 1;
85 return [textField frame].size.width;
88 return [textField frame].size.height;
95 "Function is not appropriate for this type of widget (%s)",
115 NSString *stringValue = [[NSString alloc] initWithCString:value encoding:NSUTF8StringEncoding];
116 [textField setStringValue:stringValue];
117 [stringValue release];
124 "Function is not appropriate for this type of widget (%s)",
135 const char *defaultValue) {
143 return [[textField stringValue] cStringUsingEncoding:NSUTF8StringEncoding];
149 "Function is not appropriate for this type of widget (%s)",
199 wParent=GWEN_Widget_Tree_GetParent(w);
203 textField = [[[
CocoaLineTextField alloc] initWithFrame:NSMakeRect(10.0, 10.0, 100.0, 22.0)] autorelease];
207 [textField setEditable:YES];
210 NSString *stringValue = [[NSString alloc] initWithCString:s encoding:NSUTF8StringEncoding];
211 [textField setStringValue:stringValue];
212 [stringValue release];