Re: Program crashed after edit values at NSTableView
Re: Program crashed after edit values at NSTableView
- Subject: Re: Program crashed after edit values at NSTableView
- From: Peter C <email@hidden>
- Date: Sat, 8 May 2010 15:55:17 +0800
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@hidden)
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:
This email sent to email@hidden