Graham, after setDataSource to nil, seems do the trick. No more crashing.

Thanks.

Peter C

On 8 May 2010, at 1:10 PM, Graham Cox wrote:

> 
> On 08/05/2010, at 2:21 PM, Peter C wrote:
> 
>> How do I prevent [] or NSTableView updating after window is close ?
> 
> 
> Looks like the table view is asking your data source for something after that 
> something has been deallocated. Try setting the table's dataSource to nil 
> when the controller is dealloc'ed, then even if the table hangs around for a 
> bit longer, it won't crash.
> 
> --Graham
> 
> 

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to