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
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 NSViewContr
g its 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 Cat
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 NSArr
[[_topLevelNibObjects objectAtIndex:i] release];
}
[_topLevelNibObjects release];
}
HTH,
Cathy
On Nov 5, 2008, at 8:26 AM, Tomaž Kragelj wrote:
Hello
My application should be tiger compatible, so I can't use
NSViewController. I created a custom view controll
to load 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
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
sa