cleanup
This commit is contained in:
@@ -3,7 +3,8 @@
|
|||||||
static NSWindow *window;
|
static NSWindow *window;
|
||||||
static NSTextView *text;
|
static NSTextView *text;
|
||||||
|
|
||||||
void MakeNewCocoaWindow() {
|
void MakeNewCocoaWindow()
|
||||||
|
{
|
||||||
NSImage *image = [NSImage imageNamed:@"splash"];
|
NSImage *image = [NSImage imageNamed:@"splash"];
|
||||||
NSSize size = [image size];
|
NSSize size = [image size];
|
||||||
float height = size.height;
|
float height = size.height;
|
||||||
@@ -41,11 +42,13 @@ void MakeNewCocoaWindow() {
|
|||||||
[window makeKeyAndOrderFront:nil];
|
[window makeKeyAndOrderFront:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisposeOfCocoaWindow() {
|
void DisposeOfCocoaWindow()
|
||||||
|
{
|
||||||
[window close]; /* Released by setReleasedWhenClosed */
|
[window close]; /* Released by setReleasedWhenClosed */
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetCocoaWindowText(const char *s) {
|
void SetCocoaWindowText(const char *s)
|
||||||
|
{
|
||||||
[text setString:[NSString stringWithCString:s]];
|
[text setString:[NSString stringWithCString:s]];
|
||||||
[text display];
|
[text display];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user