first steps - a window
first steps - a window
- Subject: first steps - a window
- From: "Lars Elden" <email@hidden>
- Date: Mon, 6 Feb 2006 12:25:55 +0100
This code builds a window and it works ok, though execution does not returns
when closing the window. In a next sample I try to subclass it (don't want
to use delegates or notifications by now). I appreciate your comments and
help, thanks. Lars
#import <Cocoa/Cocoa.h>
int main( int argc, char *argv[] )
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSApplication * app = [NSApplication sharedApplication];
NSWindow * win = [[NSWindow alloc] initWithContentRect:NSMakeRect( 200,
200, 600, 400 )
styleMask:( NSTitledWindowMask |
NSResizableWindowMask |
NSClosableWindowMask |
NSMiniaturizableWindowMask )
backing:NSBackingStoreBuffered
defer:YES ];
[win setTitle:@"Tutor02"];
[app runModalForWindow: win ];
[app release];
[pool release];
return EXIT_SUCCESS;
}
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden