> On May 27, 2015, at 10:22 AM, Kyle Sluder <k...@ksluder.com> wrote:
> 
>> On May 27, 2015, at 8:17 AM, Scott Ribe <scott_r...@elevated-dev.com 
>> <mailto:scott_r...@elevated-dev.com>> wrote:
> 
>> 
>>> On May 27, 2015, at 8:20 AM, Kyle Sluder <k...@ksluder.com 
>>> <mailto:k...@ksluder.com>> wrote:
>>> 
>>> The bug is in your code. It has always been a requirement that you nil out 
>>> any delegate and datasource backpointers before the thing they point to 
>>> gets deallocated. You just happened to get away with it due to some aspect 
>>> of older Xcode versions’ codegen.
>> 
>> I’m pretty sure that a window and it’s views should not be trying to redraw 
>> after being closed…
> 
> Raglan said nothing about the window being closed.

He said that he fixed it by nilling out the delegate and datasource in 
windowWillClose:. This implies that the crash occurred sometime after the 
window either was closing or had closed.

Again, though, I had this happen with a table view that was in a window that 
neither had closed, nor should have had its datasource/delegate nilled out. It 
was a perfectly valid, active table view in an open window, and when you’d 
click on it to change its selection, it’d crash (but only on 10.6.8, and only 
when compiled with Xcode 6). IMO, Xcode 6 and 10.6.8 are just a bad combo, as I 
doubt Apple has tested compiling for such an old system in some time.

Charles

_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to