All Comments
TopTalkedBooks posted at August 20, 2017

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:

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).

TopTalkedBooks posted at August 20, 2017

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:

There are quite a few more helpful beginners tutorials by Scott Stevenson here:

TopTalkedBooks posted at August 20, 2017

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

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

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

Top Books
We collected top books from hacker news, stack overflow, Reddit, which are recommended by amazing people.