• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RV: first steps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: RV: first steps
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: Modifying HTML Content of a WebFrame
  • Next by Date: Re: objectifying a struct
  • Previous by thread: Re: Modifying HTML Content of a WebFrame
  • Next by thread: Re: RV: first steps
  • Index(es):
    • Date
    • Thread