can 1 show me how write "hello world" program on textwrangler , running using terminal objective-c language? know can use xcode , stuff wanna learn how use textwrangler. thank in advance.
p.s: if can provide step-by-step i'll more thankful.
edit file in textwranger (name hello.m). open terminal, , go directory saved file in, , enter following commands:
gcc -framework foundation hello.m -o hello
then, run program enter following command:
./hello
can use following code example, save hello.m
code:
#import <foundation/foundation.h> int main(int argc, const char *argv[]) { nsautoreleasepool *pool = [[nsautoreleasepool alloc] init]; nslog(@"hello world\n"); [pool drain]; return 0; }
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment