Re: Program crashed after edit values at NSTableView

2010-05-08 Thread Peter C
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 as

Re: Program crashed after edit values at NSTableView

2010-05-07 Thread Graham Cox
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 deallo

Program crashed after edit values at NSTableView

2010-05-07 Thread Peter C
Hello all, I am doing a program to input align image values for horizontal and vertical. Basically it uses NSTableview to enter integer at horizontal and vertical columns. It work fine until the close button is clicked, the window is suppose to end modal mode and close window. But somehow it cr