Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

iOS Xcode vs OS X Xcode

I'm a Mac newbie. I'd like to give Xcode a try. I've searched the 'net, but all that I've found is example code for iOS. Is Xcode for iOS identical to Xcode for OS X? Should I search the 'net for example code for Objective-C? Is Objective-C identical to Xcode? I'd like to get some books. Should I get beginner books for Objective-C or beginner books for Xcode or does it make any difference?


I have Mavericks on my Macbook Pro & Mountain Lion on my Mac mini. I've downloaded Xcode onto my laptop but not onto my mini.


Thanks.

David

MacBook Pro (15-inch Mid 2012), OS X Mavericks (10.9)

Posted on Nov 23, 2013 5:33 PM

Reply
Question marked as Best reply

Posted on Nov 23, 2013 6:58 PM

macnerd48 wrote:


I'm a Mac newbie. I'd like to give Xcode a try. I've searched the 'net, but all that I've found is example code for iOS.


All? iOS is certainly popular but if you haven't found any OS X examples then you haven't searched very much of the net.


Is Xcode for iOS identical to Xcode for OS X?


Identical? No. There is the whole simulator thing. Interface Builder is different obviously. Xcode itself does both so it is more or less identical.


Should I search the 'net for example code for Objective-C? Is Objective-C identical to Xcode? I'd like to get some books. Should I get beginner books for Objective-C or beginner books for Xcode or does it make any difference?


It doesn't make any difference. Example code is really only useful for people who could write it themselves but find it more efficient to start with a template. If you don't know, then you need to learn first. Otherwise, when the example code fails as it does 75% of the time, you're stuck.



9 replies
Question marked as Best reply

Nov 23, 2013 6:58 PM in response to macnerd48

macnerd48 wrote:


I'm a Mac newbie. I'd like to give Xcode a try. I've searched the 'net, but all that I've found is example code for iOS.


All? iOS is certainly popular but if you haven't found any OS X examples then you haven't searched very much of the net.


Is Xcode for iOS identical to Xcode for OS X?


Identical? No. There is the whole simulator thing. Interface Builder is different obviously. Xcode itself does both so it is more or less identical.


Should I search the 'net for example code for Objective-C? Is Objective-C identical to Xcode? I'd like to get some books. Should I get beginner books for Objective-C or beginner books for Xcode or does it make any difference?


It doesn't make any difference. Example code is really only useful for people who could write it themselves but find it more efficient to start with a template. If you don't know, then you need to learn first. Otherwise, when the example code fails as it does 75% of the time, you're stuck.



Nov 24, 2013 8:28 AM in response to etresoft

I understand the difference between Xcode & Objective-C. Xcode is the IDE & Objective-C is the programming language. I've also found out that the APIs for OS X & iOS are different. Xcode will allow me to create either an iOS app or an OS X app. I've used more than one search engine & I've looked for OS X demos & every website that I go to has demos for iOS. This is very frustrating.

Nov 24, 2013 9:02 AM in response to macnerd48

Even Xcode pops up a lot of iOS stuff when searching its documentation - you probably just need to refine the search terms a little. Most search engines such as Google have various options for the search, so you might want to exclude iOS (and maybe iPhone as well) from the results, since those tend to be the first few pages just due to the volume of new(er) developers. You really won't find that many "demo" applications, but another place to explore might be github.com.

Nov 24, 2013 9:36 AM in response to red_menace

Thanks. I'll have to refine my search. I'll probably have to buy "dummies" books on Objective-C & Xcode.


I've had PCs most of my life & I've played around with Visual Basic.net. I understand the VERY basics of object-oriented programming. Since I've never tried C or any version of C (subsets & supersets), I'll have to start at the very beginning.

Nov 24, 2013 9:54 AM in response to macnerd48

The various hard copy Xcode/Cocoa books are usually out of date by the time they get published; ebooks or PDFs may be more recent. Books on C and Objective-C tend to stay relevant, since the languages themselves don't change that fast.


You might also keep an eye on various programming sites such as stackoverflow or the Apple mailing lists - the topics don't normally include anything more than code snippets, but every once in a while a link gets posted to some good stuff.

Nov 24, 2013 10:12 AM in response to macnerd48

Before you spend time reviewing 3rd-party information, exhaust the extensive resources in the Mac Developer Center. Lots of information is available with at the free registration level. Start with the Getting Started link in the left navigator. When you get to the point you need to review sample code, theSample Code link shows 382 results that are all OS X.


https://developer.apple.com/library/mac

Nov 24, 2013 12:05 PM in response to macnerd48

If you are brand new to Objective-C I recommend Programming in Objective-C by Stephen G. Kochan



The book begins exclusively with Objective-C and doesn;t assume any prior C knowledge. The Apple Libraries and GUI are not touched on till later in the book. This will allow you to concentrate on the language without getting caught up in the trickier bits.

iOS Xcode vs OS X Xcode

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.