On Mar 11, 2010, at 10:44 AM, Alexander Bokovikov wrote:

> Of couse, I never called it directly. I never implemented it. I just _use_ 
> NSTableView. Nothing more. The fact is that it is working nice in the main 
> app, where it is never destroyed explicitly. But it doesn't work correctly in 
> a modal window, which I create and then release. As I've described the only 
> way I've found is to assign the datasource explicitly in awakeFromNib and set 
> it to nil explicitly in windowWillClose handler.
> 
> Really my question was - is this a known bug, a feature or my mistake?

Alexander,

This seems to describe that you are releasing the datasource before the 
tableview that uses it is released [possibly by over-releasing it, as I would 
assume the tableview would retain it, but it may not].

Maybe make sure your window is released before the source is released.  Or at 
the very least, that the window is closed/offscreen before the source is 
released.

Eli

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to