34 NSRect frame = [textBrowser frame];
35 frame.size.width = value;
36 [textBrowser setFrame:frame];
41 NSRect frame = [textBrowser frame];
42 frame.size.height = value;
43 [textBrowser setFrame:frame];
53 "Function is not appropriate for this type of widget (%s)",
78 return [textBrowser frame].size.width;
81 return [textBrowser frame].size.height;
88 "Function is not appropriate for this type of widget (%s)",
107 if (value && *value) {
113 NSString *basePathString = nil;
114 if (basePath && *basePath) {
115 basePathString = [[NSString alloc] initWithCString:basePath encoding:NSUTF8StringEncoding];
118 NSString *stringValue = [[NSString alloc] initWithCString:value encoding:NSUTF8StringEncoding];
120 [stringValue release];
121 [basePathString release];
130 "Function is not appropriate for this type of widget (%s)",
141 const char *defaultValue) {
149 if (stringValue && [stringValue length] > 0)
150 return [stringValue cStringUsingEncoding:NSUTF8StringEncoding];
159 "Function is not appropriate for this type of widget (%s)",
173 wParent=GWEN_Widget_Tree_GetParent(w);
177 textBrowser = [[[
CocoaTextBrowser alloc] initWithFrame:NSMakeRect(0.0, 0.0, 30.0, 30.0) frameName:nil groupName:nil] autorelease];
182 NSString *stringValue = [[NSString alloc] initWithCString:s encoding:NSUTF8StringEncoding];
184 [stringValue release];