PDA

View Full Version : Coding Advice




Skid
Nov 7, 2005, 07:54 AM
Hi,

I want to start developing OS X applications, I used to programme quite a lot but over the past couple of years I've not really touched any code - so I was wondering if anyone could point me in the direction (I've read the links in the stick thread, but none seem geared to what im after) in developing GUI Applications - just with a guide on how to get started, with then links to perhaps some decent books..

Anyone able to offer any advice/directions?

Thanks

Oops, bit vague.. I'm not interested in Developing in Java as I can't really stand the language after having it rammed down my throat at Uni - i'm looking towards xcode - mainly for socket programming



caveman_uk
Nov 7, 2005, 09:00 AM
Curiously enough socket programming on the mac still relies on the C APIs (including the original BSD sockets API). There's not much in Cocoa that deals with networking. Of course there's nothing to stop you using the C APIs within an objective-C program.

VanMac
Nov 7, 2005, 02:27 PM
Hi,

I want to start developing OS X applications, I used to programme quite a lot but over the past couple of years I've not really touched any code - so I was wondering if anyone could point me in the direction (I've read the links in the stick thread, but none seem geared to what im after) in developing GUI Applications - just with a guide on how to get started, with then links to perhaps some decent books..

Anyone able to offer any advice/directions?

Thanks

Oops, bit vague.. I'm not interested in Developing in Java as I can't really stand the language after having it rammed down my throat at Uni - i'm looking towards xcode - mainly for socket programming
So, not really sure what you are looking for. Top part of your post mentions GUI programming, then your edit speaks to sockets.... Let us know what you are looking to do :confused:

Skid
Nov 8, 2005, 01:16 PM
So, not really sure what you are looking for. Top part of your post mentions GUI programming, then your edit speaks to sockets.... Let us know what you are looking to do :confused:

Hi,

Thanks for the replies.. Basically, I've in the past created my own versions of software I've used as a means to complete personal challenges, and also add features that I'd like to see in them, etc.. I'd be looking to create some network based gui apps, for example off the top of my head an ftp client (yes, i know there's loads out there, but I'd still like to create my own, etc)

I'm really looking for some 'decent' book(s) that'll teach a new-comer to the object c style of coding, etc

Ta :)

HiRez
Nov 8, 2005, 01:53 PM
I'm really looking for some 'decent' book(s) that'll teach a new-comer to the object c style of coding, etcMost people agree that Cocoa Programming for Mac OS X (http://www.amazon.com/exec/obidos/tg/detail/-/0321213149/qid=1131479233/sr=1-1/ref=sr_1_1/104-1942456-3494313?v=glance&s=books) by Aaron Hillegass is probably the best starter book for Cocoa. It gives a good background on the whole concept of Cocoa programming with particular attention to the GUI elements, and you will learn most of what you need about Objective-C on the way. However, I would probably start by reading Apple's Objective-C PDF (search for it at developer.apple.com). Most Cocoa books will have little about network/socket programming. Also, newer concepts like Core Data are not covered in any current books that I know of, but the Apple developer site has quite a few articles available, most of which you can search for and access directly from Xcode, as well as the Cocoa APIs (Cocoa networking classes would be in the "Foundation" API).

HiRez
Nov 8, 2005, 02:04 PM
Oh, I forgot to mention Core Mac OS X and UNIX Programming (http://www.amazon.com/exec/obidos/tg/detail/-/0974078506/ref=pd_sim_b_2/104-1942456-3494313?%5Fencoding=UTF8&v=glance) (co-authored by Hillegass), which is a meaty tome of lower-level OS X programming, including some Cocoa but also BSD UNIX and sockets. This might be a tough book to start with, and it is not a good intro to Cocoa, but it has a lot of very useful information in it for the intermediate to advanced Mac coder.

HiRez
Nov 8, 2005, 02:15 PM
OK, one more Cocoa book I go to again and again is Cocoa Programming (http://www.amazon.com/exec/obidos/tg/detail/-/0672322307/ref=cm_bg_d_2/104-1942456-3494313?v=glance). This is more of a reference book for Cocoa than a tutorial but it's huge and comprehensive, with lots of nice code examples. The only problem is it hasn't been updated in years so much of the information is now out of date (and there is no discussion of any of the API introduced in the last few OS X versions). I believe it covers everything through 10.2. But, most of the core API is still the same and this book continues to be useful to me.

caveman_uk
Nov 9, 2005, 02:45 AM
There's also the Kochan book 'Programming in Objective-C' which is a good intro to the language itself. For beginners I'd recommend this and the Hillegass book. Both are excellent.

GorillaPaws
Nov 9, 2005, 03:18 AM
There's also the Kochan book 'Programming in Objective-C' which is a good intro to the language itself. For beginners I'd recommend this and the Hillegass book. Both are excellent.

I second that.

Skid
Nov 9, 2005, 03:32 AM
Brilliant, thank you all for the replies - that's exactly what I was after - I've started to see some other books in other threads now, so Santa is going to get a bit longer book list from me this year..