{"id":83,"date":"2006-04-23T18:08:23","date_gmt":"2006-04-23T23:08:23","guid":{"rendered":"http:\/\/www.juixe.com\/techknow\/index.php\/2006\/04\/23\/hello-world-cocoa\/"},"modified":"2006-04-23T18:08:23","modified_gmt":"2006-04-23T23:08:23","slug":"hello-world-cocoa","status":"publish","type":"post","link":"http:\/\/juixe.com\/techknow\/index.php\/2006\/04\/23\/hello-world-cocoa\/","title":{"rendered":"Hello World Cocoa"},"content":{"rendered":"<p>Want to be a Mac Developer?  Well, OS X and Xcode makes it easy to start hacking your ideas into Apple applications.  I started to &#8216;write&#8217; a Hello World program using Xcode.  In less than five minutes and no coding at all I was able to create what I had in mind:<\/p>\n<pre>\n#import &lt;Foundation\/Foundation.h&gt;\n\nint main (int argc, const char * argv[]) {\n   NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];\n\n   \/\/ insert code here...\n   NSLog(@\"Hello, World!\");\n   [pool release];\n   return 0;\n}\n<\/pre>\n<p>The above code was auto-generated for me by Xcode.  Now only if Xcode could auto-generate the code for a new killer app that I been dreaming of.<\/p>\n<p>I also want to note that the above code is a command line, Foundation Tool, application.<\/p>\n<p>The @&#8221;Hello, World!&#8221; piece of code is a NSString literal.  You night also have noticed that there are a lot of types that start with NS.  The NS prefix stands for Next Step which is where Cocoa first started out.<\/p>\n<p>Technorati Tags: <a href=\"http:\/\/technorati.com\/tag\/object+c\" rel=\"tag\">object c<\/a>, <a href=\"http:\/\/technorati.com\/tag\/os+x\" rel=\"tag\"> os x<\/a>, <a href=\"http:\/\/technorati.com\/tag\/mac+developer\" rel=\"tag\"> mac developer<\/a>, <a href=\"http:\/\/technorati.com\/tag\/hello+world\" rel=\"tag\"> hello world<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Want to be a Mac Developer? Well, OS X and Xcode makes it easy to start hacking your ideas into Apple applications. I started to &#8216;write&#8217; a Hello World program using Xcode. In less than five minutes and no coding at all I was able to create what I had in mind: #import &lt;Foundation\/Foundation.h&gt; int [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[14,17,19,21,3],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p902K-1l","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/83"}],"collection":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":0,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/83\/revisions"}],"wp:attachment":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/media?parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/categories?post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/tags?post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}