36 [spinbox setEnabled:(value==0)?NO:YES];
44 NSRect frame = [spinbox frame];
45 frame.size.width = value;
46 [spinbox setFrame:frame];
51 NSRect frame = [spinbox frame];
52 frame.size.height = value;
53 [spinbox setFrame:frame];
74 "Function is not appropriate for this type of widget (%s)",
94 return ([spinbox isEnabled])?1:0;
97 return ([spinbox isFirstResponder])?1:0;
100 return [spinbox frame].size.width;
103 return [spinbox frame].size.height;
118 "Function is not appropriate for this type of widget (%s)",
140 if (value && *value) {
141 NSString *stringValue = [[NSString alloc] initWithCString:value encoding:NSUTF8StringEncoding];
143 [stringValue release];
151 "Function is not appropriate for this type of widget (%s)",
162 const char *defaultValue) {
171 return [[spinbox
stringValue] cStringUsingEncoding:NSUTF8StringEncoding];
177 "Function is not appropriate for this type of widget (%s)",
208 wParent=GWEN_Widget_Tree_GetParent(w);
215 spinbox = [[[
CocoaSpinbox alloc] initWithFrame:NSMakeRect(0.0, 0.0, 100.0, 22.0)] autorelease];
220 NSString *stringValue = [[NSString alloc] initWithCString:s encoding:NSUTF8StringEncoding];
222 [stringValue release];