App KVCFun - init


In the KVCFun app, there is an -init method that is actually called and initializes, as shown by a breakpoint.

I’m surprised that it is called at all. In other apps that i have seen and when I tried it myself, a standalone -init didn’t get called by the system. To get called, It had to be part of an [[alloc]init], which isn’t present in this project. To initialize, I’ve had to use -awakeFromNib, -initWithFrame, …AppDelegate, or +initialize, which the system does call.

So how do you get the system to call -init, standing on its own?

I’m using OSX 10.6 and Xcode 3.2.