Re: debug control not reaching init method

2009-08-21 Thread Andrew Farmer
On 20 Aug 2009, at 04:20, Navneet Kumar wrote: AppController is not coming from an archive. Dragged an NSObject to MainMenu.xib, set its class to AppController, made AppController the delegate of File's Owner. Er, that IS coming from an archive. (Nib files are archives.) _

Re: debug control not reaching init method

2009-08-20 Thread Graham Cox
On 20/08/2009, at 9:20 PM, Navneet Kumar wrote: AppController is not coming from an archive. Dragged an NSObject to MainMenu.xib, set its class to AppController, made AppController the delegate of File's Owner. These two statements contradict one another. If you dragged an object into the

Re: debug control not reaching init method

2009-08-20 Thread Navneet Kumar
Hi, AppController is not coming from an archive. Dragged an NSObject to MainMenu.xib, set its class to AppController, made AppController the delegate of File's Owner. Thanks, Nick On 20-Aug-09, at 4:47 PM, Graham Cox wrote: On 20/08/2009, at 9:08 PM, Nick Rogers wrote: What I may be mis

Re: debug control not reaching init method

2009-08-20 Thread Graham Cox
On 20/08/2009, at 9:08 PM, Nick Rogers wrote: What I may be missing here? So maybe init isn't actually being called. Objects constructed from a nib are usually inited using -initWithCoder:. Is AppController coming from a nib? --Graham ___

debug control not reaching init method

2009-08-20 Thread Nick Rogers
Hi, This is my third app in Xcode3. Had to use Xcode3 becuase it has to be a 64-bit app. In earlier two apps, the control reaches to the breakpoint on the first line of the init method of AppController class, while debugging. But in this third one, it is not reaching the breakpoint, and th