Thanks for your reply Keary,

What I don't understand is why I don't crash if the window is closed from its close box...

Andre Masse


On Dec 1, 2008, at 09:08, Keary Suska wrote:


On Dec 1, 2008, at 6:47 AM, Andre Masse wrote:

I've a strange bug that happens if the window is closed by choosing the "Close" menu and not by clicking in the window's close box. The window contains master/detail views. I can prevent the crash if I set the master's table view datasource to nil in dealloc but I don't understand why this is happening...

Any idea?

Andre Masse

backtrace here:

#0  0x922d5907 in ___forwarding___ ()
#1  0x922d5a12 in __forwarding_prep_0___ ()
#2  0x94ee1cae in -[NSTableView _dataSourceValueForColumn:row:] ()


I would assume that the data source object is being deallocated before the table view is done with it, especially if the crash error is Exec Bad Access. This would explain why setting the data source to nil in dealloc avoids the error. There can be a number of causes, but there isn't sufficient info to suggest anything further (IMHO).

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to