Re: Custom view controller

2008-11-05 Thread Raphael Sebbe
the nib (or NSViewController). Raphael On Wed, Nov 5, 2008 at 8:26 AM, Tomaž Kragelj [EMAIL PROTECTED] wrote: Hello My application should be tiger compatible, so I can't use NSViewController. I created a custom view controller class with similar interface albeit much simpler. However I am

Re: Custom view controller

2008-11-05 Thread Cathy Shive
wrote: Hello My application should be tiger compatible, so I can't use NSViewController. I created a custom view controller class with similar interface albeit much simpler. However I am not sure about the following (taken from NSViewController documentation): ...taking the same care

Re: Custom view controller

2008-11-05 Thread Tomaž Kragelj
Hi Raphael and Cathy - thanks both for your replies. I already implemented top-level objects relasing, that was simple (although the objects are not released because dealloc is not called...) - in fact my code is almoust identical to the one shown below. On the other hand I do bind an

Re: Custom view controller

2008-11-05 Thread Cathy Shive
delegate and data sources to 'nil' in the same method you use to remove the bindings. This was the cause of a similar problem I had in a custom view controller - it's a shot in the dark and I can't explain it, but maybe... Best of luck, Cathy Hi Raphael and Cathy - thanks both for your

Re: Custom view controller

2008-11-05 Thread Ken Thomases
On Nov 5, 2008, at 1:26 AM, Tomaž Kragelj wrote: My application should be tiger compatible, so I can't use NSViewController. I created a custom view controller class with similar interface albeit much simpler. However I am not sure about the following (taken from NSViewController

Re: Custom view controller

2008-11-05 Thread Tomaž Kragelj
I haven't though of this. I solved the issue though, through Cathy's proposal, by adding removeObservations method to my view controller base class and call it from my NSWindowController implementation. Now the dealloc is called as expected. In one of my nibs I do use the file's owner as a

Custom view controller

2008-11-04 Thread Tomaž Kragelj
Hello My application should be tiger compatible, so I can't use NSViewController. I created a custom view controller class with similar interface albeit much simpler. However I am not sure about the following (taken from NSViewController documentation): ...taking the same care to prevent