|
|
#1 |
|
What is the difference between Cocoa & Xcode?
I'm looking to try and self teach myself the basics of Cocoa then get into some minor Mac App developing but what is the difference between Cocoa & Xcode? Should I be trying to learn the basics of Cocoa or Xcode or is it technicly the same thing.
Just looking to get my feet in the water to at least start reading up on the basics. |
|
|
|
0
|
|
|
#2 |
|
In a nutshell:
Cocoa is the library of code you use to write applications. Cocoa usually refers to user interface code, such as windows and menu bars, but it also refers to code that lets you work with various data types, such as arrays. Xcode is the tool, specifically Integrated Development Environment, that you use to write your code and turn it into an actual application. |
|
|
|
0
|
|
|
#3 |
|
To put it another way, Xcode is an app that lets you write Cocoa, but Xcode also lets you write code for other frameworks, using other languages. Likewise, Cocoa doesn't have to be written with Xcode; it can be written in any text editor. However, due to many conveniences, you'll typically find most people writing Cocoa Apps using Xcode and Interface Builder.
You'll definitely want to learn Xcode and Interface Builder, but these are typically taught as you need them in most tutorials on Cocoa. When you're first starting out, you'll probably be using a text editor and the terminal. Take a look at the guides section at the top of the programming forum for some helpful references as well as doing a search for learning to program Cocoa. There's a lot of really helpful information available on this site for beginners.
__________________
How to ask good programming questions: Getting Answers
|
|
|
|
0
|
|
|
#4 |
|
In addition to the reply above that answers your query very well, just a thought on the book you may choose. I found Cocoa Programming for Mac OS X by Aaron Hillegass excellent. If you go for this, make sure it's the third edition you buy as the first two releases of this book are now seriously out of date.
Good luck with your programming! Drink plenty of coffee...
__________________
First generation Mac Pro. Need to upgrade. I said I need to upgrade. Apple? Are you there? Hello.....? |
|
|
|
1
|
|
|
#5 |
|
If you can't figure that out, attempting to be a developer is probably not the best idea.
__________________
*** Is redesign innovation? The false burdens of Apple iOS *** | Apple User Art | Celebs with Macs | Mac: Power Users | Tech Humor |
|
|
|
0
|
|
|
#6 |
|
thanks for the tips everyone.
|
|
|
|
0
|
|
|
#7 |
|
Just to mince words, you don't write Cocoa- you write Objective-C code (or possibly another language) that uses Cocoa.
|
|
|
|
0
|
|
|
#8 |
|
You are correct, although it's pretty common to see that phrase with the implied meaning you stated. My apologies to the OP if that was a point of confusion.
__________________
How to ask good programming questions: Getting Answers
|
|
|
|
0
|
|
|
#9 |
|
Another way of looking at it, if it helps make it a bit more clear:
Windows: C++ (programming language) using Microsoft Foundation Class library (provided premade functions) with the Visual C++ IDE (editing and compiling environment). C# using .NET Framework (which includes a class library) with the Visual Studio IDE. MacOS X: Objective-C using Cocoa library with the Xcode IDE. Bottom line is: Language, library, editor. Cocoa being the library and Xcode being the editor and compiler. |
|
|
|
0
|
|
|
#10 |
|
|
0
|
|
|
#11 |
|
|
2
|
|
|
#12 |
|
I realize this post is 4 years old, but because someone else revised the topic today I thought I'd just mention that the compiler that Xcode now uses is Clang.
__________________
Battery Status - On the Mac App Store
The only app that'll estimate when your wireless devices will need their batteries changed. Like it on Facebook! |
|
|
|
0
|
|
|
#13 |
|
Not in 10.9.
__________________
OS X 10.9 and iOS 7 delayed. Haswell Q3/Q4 2013. -------------------- “Only the dead have seen the end of the war.” -- Plato --
|
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| What is the difference between empty trash & secure empty & will it affect my SSD? | clutchm3 | MacBook Pro | 6 | Sep 6, 2011 07:36 AM |
| what is the difference between moble racks & external enclosures for hard drives | Sossity | Mac Peripherals | 6 | Apr 10, 2011 03:49 AM |
| What is the difference between the Panasonic DMC-TZ5 and the TZ4? | Pathfinder55 | Digital Photography | 4 | Aug 14, 2008 08:53 AM |
| What is the difference between Macs & PCs in image creation | rockdog | Design and Graphics | 23 | Apr 15, 2007 08:56 AM |
| What is the difference between Sawtooth, Quicksilver 1 & 2 | onlydroops | Macintosh Computers | 5 | Aug 6, 2003 08:10 AM |
All times are GMT -5. The time now is 05:01 AM.






Drink plenty of coffee...

Linear Mode

