RV: first steps
RV: first steps
- Subject: RV: first steps
- From: "Lars Elden" <email@hidden>
- Date: Sun, 5 Feb 2006 14:11:49 +0100
Hi,
I am bran new to cocoa and need to learn it from the command line (terminal
window), not using xcode by now.
I have compiled this little sample:
gcc -Wall -o test test.m -framework Cocoa ./test
#import <Cocoa/Cocoa.h>
int main( int argc, char *argv[] )
{
NSAutoreleasePool * pool = [ [ NSAutoreleasePool alloc ] init ];
NSApp = [ NSApplication sharedApplication ];
NSRunAlertPanel( @"Apple OSX", @"Hello world!",
@"OK",NULL,NULL);
[NSApp run];
[NSApp release];
[pool release];
return EXIT_SUCCESS;
}
but it creates a terminal window when I run it, and behind it there is the
alert window.
Is my code ok ? How to avoid the terminal window that shows when I run it ?
many thanks!
Lars
______________________________________________
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