Skip to content

(no subject)

2 messages · Gorazd Krosl, Simon Urbanek

6 days later
#
Gorazd,

thanks for the suggestion. Unfortunately it doesn't solve the  
problem. There are two reasons:

1) the myWinCtrl is not a local variable, it is an instance variable  
and as such RDocument manages its lifetime and therefore it is  
properly released in -(void)close. (note
		[self removeWindowController:myWinCtrl];
		[myWinCtrl close];
just before the hack and
		[myWinCtrl release];
		myWinCtrl=nil;
just after the hack.

2) even if we release myWinCtrl right away (albeit incorrectly so)  
the problem persists

I agree that there is something wrong, I just don't know what - the  
symptom is that the corresponding entry in the "Window" menu stays  
there and you can click on it and open the document again. So the  
hack fixes the symptom, but likely not the cause. If you have an idea  
what could cause the entry to stay in the list even though the window  
is closed, please let me know.

Thanks,
Simon
On Mar 16, 2007, at 10:11 AM, Gorazd Krosl wrote: