21 NSWindow *window = nil;
37 NSLog(
@"setWidth %i", value);
38 NSRect frame = [window frame];
39 frame.size.width = value;
40 [window setFrame:frame display:YES];
45 NSRect frame = [window frame];
46 frame.size.height = value;
47 [window setFrame:frame display:YES];
57 "Function is not appropriate for this type of widget (%s)",
70 NSWindow *window = nil;
80 return [window isKeyWindow];
83 return [window frame].size.width;
86 return [window frame].size.height;
93 "Function is not appropriate for this type of widget (%s)",
106 NSWindow *window = nil;
108 NSLog(
@"CocoaGui_WDialog_SetCharProperty");
115 NSString *newTitle = [[NSString alloc] initWithCString:value encoding:NSUTF8StringEncoding];
116 [window setTitle:newTitle];
125 "Function is not appropriate for this type of widget (%s)",
136 const char *defaultValue) {
137 NSWindow *window = nil;
144 return [[window title] cStringUsingEncoding:NSUTF8StringEncoding];
150 "Function is not appropriate for this type of widget (%s)",
160 NSLog(
@"CocoaGui_WDialog_AddChildGuiWidget");
162 NSWindow *window = nil;
169 NSRect bounds = [[window contentView] bounds];
170 [subview setFrame:bounds];
171 [subview setAutoresizingMask:NSViewWidthSizable|NSViewHeightSizable];
189 newWindow=[[
CocoaWindow alloc] initWithContentRect:NSMakeRect(50.0, 50.0, 400.0, 200.0) styleMask:NSTitledWindowMask|NSResizableWindowMask backing:NSBackingStoreBuffered defer:YES];
190 [newWindow setReleasedWhenClosed:NO];
193 [newContentView setAutoresizingMask:NSViewWidthSizable|NSViewHeightSizable];
194 [newWindow setContentView:newContentView];
195 [newContentView release];
197 NSLog(
@"getWindow Title");
200 NSString *stringValue = [[NSString alloc] initWithCString:s encoding:NSUTF8StringEncoding];
201 NSLog(
@"Window Title = %@", stringValue);
202 [newWindow setTitle:stringValue];
203 [stringValue release];