Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

applicationDidFinishLaunching not running

So I'm starting out with cocoa and ObjC. I'm trying to follow the example in the up and running objective C/cocoa book from oreilly. My applicationDidFinishLaunching doesn't seem to be getting called. I think it's a problem with the way I hooked everything up in the IB.

Header: http://pastebin.com/6AdQt1uN

Class: http://pastebin.com/VCQWJWkj

IB: http://img265.imageshack.us/img265/4616/screenshot20110216at111.png

Does anyone see anything obvious that my untrained eyes do not?

like image 958
Realn0whereman Avatar asked Feb 16 '11 16:02

Realn0whereman


2 Answers

Does your Application object have it's delegate set to your Application App Delegate object? Right click on Application in your IB window and set the delegate outlet to be your Application App Delegate object.

like image 89
Dominic Avatar answered Nov 02 '22 00:11

Dominic


A guess: you didn't set the object where you defined applicationDidFinishLaunching as the delegate for your app.

like image 40
Michael J. Barber Avatar answered Nov 01 '22 23:11

Michael J. Barber