Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 13, 2007, 04:16 PM   #1
R.Youden
macrumors 68020
 
R.Youden's Avatar
 
Join Date: Apr 2005
Jump from C to Objective-C

I am learning C programming for working with DSP and embedded programming for an Electronics Degree but I would like to try my hand at programming for application building. I understand that most programming uses Objective-C. How much does this differ from C? I have a book on X-Code programming and when I have finished with C I will look at jumping across.
R.Youden is offline   0 Reply With Quote
Old Jan 13, 2007, 04:23 PM   #2
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Objective-C is a super-set of C. You can do everything you can do in C. And you have a full object system to work with as well. If you are programming Mac apps then you'll have access to Cocoa, a massive object-oriented library for programming apps.

If you have no idea about object-oriented programming (and if you are only used to straight C you won't) I'd recommend reading up on the general concepts first.
robbieduncan is offline   0 Reply With Quote
Old Jan 13, 2007, 04:25 PM   #3
R.Youden
Thread Starter
macrumors 68020
 
R.Youden's Avatar
 
Join Date: Apr 2005
Do you have any books that are good for objective programming that is mac based?
R.Youden is offline   0 Reply With Quote
Old Jan 13, 2007, 04:30 PM   #4
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
I have one, pretty poor, book released sometime around 10.0 - 10.1 timeframe. I'd not recommend it!

Everyone seems to like the Hillegass Book
robbieduncan is offline   0 Reply With Quote
Old Jan 13, 2007, 05:42 PM   #5
bousozoku
Moderator emeritus
 
Join Date: Jun 2002
Location: Gone but not forgotten.
It's too bad that Bruce Eckel doesn't do Objective-C because I really like the Thinking in... series of object-oriented programming books for Java and C++.

The Hillegass book is good, though, but it won't give you the broader perspective that would be more useful.
bousozoku is offline   0 Reply With Quote
Old Jan 13, 2007, 09:13 PM   #6
Catfish_Man
macrumors 68030
 
Catfish_Man's Avatar
 
Join Date: Sep 2001
Location: Portland, OR
Send a message via AIM to Catfish_Man
The big jump going to objc is moving to thinking in objects. That'll take some time and practice.
Catfish_Man is offline   0 Reply With Quote
Old Jan 13, 2007, 11:30 PM   #7
Llywelyn
macrumors member
 
Join Date: Oct 2003
What part of it is giving you difficulty? Best way to learn the syntax is to start hacking at it.

As to the "philosophy" of it: just get some work thinking in an object-oriented paradigm. You can use Objective C as the "base language" to learn it (for me it was C++ and later Python). Studying UML may also help.
Llywelyn is offline   0 Reply With Quote
Old Jan 14, 2007, 02:34 AM   #8
Soulstorm
macrumors 68000
 
Soulstorm's Avatar
 
Join Date: Feb 2005
This book is the best introductory book to Obj-C I have ever read.

Programming in Objective-C by Steven Kochan
Soulstorm is offline   0 Reply With Quote
Old Jan 26, 2007, 01:35 AM   #9
iEdd
macrumors 68000
 
iEdd's Avatar
 
Join Date: Aug 2005
Location: Australia
Send a message via AIM to iEdd
For someone with zero assumed experience, would these 2 books get me from newbie to decent with Obj C and Cocoa in Xcode? I've programmed in java, but the book was based around windows IDEs and Java updates confused things.
Obviously the mac book is based on a mac, but is the book by Steven Kochan based around Xcode or other software for mac?
I'd really like to get into writing small Cocoa apps but I don't want a book that assumes prior C knowledge or assumes I have windows.
Thanks.
iEdd is offline   0 Reply With Quote
Old Jan 26, 2007, 02:56 AM   #10
jhande
macrumors 6502
 
Join Date: Sep 2006
Quote:
Originally Posted by Catfish_Man View Post
The big jump going to objc is moving to thinking in objects. That'll take some time and practice.
And practice and yet more practice. Coming from a procedural background it really took a long time for me to wrap my head around OOP.

OP whenever you make an objc program, make an effort to see whether you really have created viable objects, or procedural programs in disguise.
jhande is offline   0 Reply With Quote
Old Jan 26, 2007, 07:00 PM   #11
iEdd
macrumors 68000
 
iEdd's Avatar
 
Join Date: Aug 2005
Location: Australia
Send a message via AIM to iEdd
Quote:
Originally Posted by robbieduncan View Post
I have one, pretty poor, book released sometime around 10.0 - 10.1 timeframe. I'd not recommend it!

Everyone seems to like the Hillegass Book
Just a note to anyone wanting to buy this book, it's 88% () off at Barnes and Noble, bringing it to $5. I've ordered both the books in this thread
iEdd is offline   0 Reply With Quote
Old Jan 26, 2007, 07:41 PM   #12
mduser63
macrumors 68040
 
mduser63's Avatar
 
Join Date: Nov 2004
Location: Salt Lake City, UT
Send a message via AIM to mduser63
Quote:
Originally Posted by iEdd View Post
Just a note to anyone wanting to buy this book, it's 88% () off at Barnes and Noble, bringing it to $5. I've ordered both the books in this thread
That's for the older edition. Probably worth paying full price for the new edition, as it covers things about Cocoa that didn't exist when the first one was written (Bindings is a big one).
__________________
27" 2.93 GHz Core i7 iMac, 12 GB RAM
2.3 GHz Retina MacBook Pro
12" 1.33 GHz Superdrive PowerBook G4, 1.25 GB RAM
iPhone 5, iPad 3, etc.
mduser63 is offline   0 Reply With Quote
Old Jan 26, 2007, 07:55 PM   #13
Nutter
macrumors 6502
 
Join Date: Mar 2005
Location: London, England
Quote:
Originally Posted by iEdd View Post
Obviously the mac book is based on a mac, but is the book by Steven Kochan based around Xcode or other software for mac?
I'd really like to get into writing small Cocoa apps but I don't want a book that assumes prior C knowledge or assumes I have windows.
Thanks.
Steve Kochan's book is written with XCode in mind (well, ProjectBuilder actually, an older version of XCode). He doesn't assume prior C knowledge.

Read that and then Hillegass' book, and you'll be well on the way.

By the way, Objective-C is relatively unknown and unused outside the Mac world, so you're unlikely to find any Objective-C material that is Windows-based.
Nutter is offline   0 Reply With Quote
Old Jan 26, 2007, 11:56 PM   #14
iEdd
macrumors 68000
 
iEdd's Avatar
 
Join Date: Aug 2005
Location: Australia
Send a message via AIM to iEdd
Thanks Nutter
Quote:
Originally Posted by mduser63 View Post
That's for the older edition. Probably worth paying full price for the new edition, as it covers things about Cocoa that didn't exist when the first one was written (Bindings is a big one).
Damn. Ah well.. I might have to think about the newer edition later on then. Is the old edition obselete now, or will what's in it still work?
EDIT: That's why I got confused, the link posted above is for the old edition

Last edited by iEdd; Jan 27, 2007 at 12:03 AM.
iEdd is offline   0 Reply With Quote
Old Jan 27, 2007, 12:07 AM   #15
XnavxeMiyyep
macrumors 65816
 
XnavxeMiyyep's Avatar
 
Join Date: Mar 2003
Location: Washington
Send a message via AIM to XnavxeMiyyep Send a message via MSN to XnavxeMiyyep Send a message via Yahoo to XnavxeMiyyep
http://www.cocoalab.com/BecomeAnXcoder.pdf

That pdf is a great start if you already know how to program in C (like I did). It would probably be pretty good for those without any programming experience at all too.
XnavxeMiyyep is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Do you plan to jump from Android, keeping iPhone, or jump to Android? Starfyre Alternatives to iOS and iOS Devices 192 Sep 11, 2013 03:49 PM
iPhone: When will you jump in? Lend27 Jailbreaks and iOS Hacks 39 Feb 4, 2013 01:44 PM
Babu Jump -- Jump For Your Life!! y3k00000 iPhone and iPod touch Apps 1 Nov 7, 2012 08:48 AM
Kung-Fu Jump: Jump with Actions HuaXuCC iPhone and iPod touch Apps 3 Sep 4, 2012 03:14 AM

Forum Jump

All times are GMT -5. The time now is 08:16 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC