Programming in Objective-C 2.0 (2nd Edition)

Author: Stephen G. Kochan
4.4
All Stack Overflow 24

Comments

by anonymous   2017-08-20

I fully recommend viewing this site, as I have heard many good things of it:

http://cocoadevcentral.com/d/learn_objectivec/

If you're more the pick it up and read kind of person, might I suggest the following book:

http://www.amazon.com/Programming-Objective-C-2-0-Stephen-Kochan/dp/0321566157/ref=sr_1_1?ie=UTF8&qid=1305617578&sr=8-1

Third edition will be out next month, so you may want to wait on it.

by anonymous   2017-08-20

Assuming that you're calling myMethod on the same class as what implements viewDidLoad:

- (void)viewDidLoad {
    //...other code
    [self myMethod];
    //...other code
}

If you are having trouble with basic Objective-C though, I'd strongly suggest to either get a decent book on Objective-C, such as:

…or at least read a good beginners tutorial, such as:
http://www.cocoadevcentral.com/d/learn_objectivec/

There are quite a few more helpful beginners tutorials by Scott Stevenson here:
http://www.cocoadevcentral.com/

by anonymous   2017-08-20

I agree, Cocoa Programming for Mac OS X by Aaron Hillegass is a great book to learn Cocoa, and it covers Obejctive-c nicely, but if you really want to KNOW the language, I would recommend: Programming in Objective-C 2.0: http://www.amazon.com/Programming-Objective-C-2-0-Developers-Library/dp/0321566157

Both are fantastic books and nicely complement eachother.

Its very important to remember that other people are having a hard time learning Cocoa too. Reading Aaron's book is a fantastic way to start. Reading source code is also another great way. THere is some open source iPhone projects (for example: wordpress), and there a bunch for OS X. Read what other people are doing so you can get the flow of an application. I found that to be the hardest part about learning (especially the Cocoa part).