Re: NSTableView crash when selected.

2009-02-17 Thread Harry Plate
Shawn, Corbin, Thanks for the suggestions! [Corbin] 1. break on objc_exception_throw : http://www.corbinstreehouse.com/blog/index.php/2008/08/your-most-important-bre akpoint-in-cocoa/ 2. Use Instruments to find the over release:

Re: NSTableView crash when selected.

2009-02-17 Thread Andy Lee
On Feb 17, 2009, at 12:51 PM, Harry Plate wrote: Eg, I created an NSString, added it to an NSArray, then created an NSAttributedString for each array element. So what would the retention count be? 2 or 3? You don't know and it doesn't matter. Don't think in terms of retain counts. Think

Re: NSTableView crash when selected.

2009-02-17 Thread Harry Plate
Andy, You don't know and it doesn't matter. Don't think in terms of retain counts. Think about whether you own an object, i.e., whether you are responsible for releasing it. snip Good stuff! Thank you. That mmObjectOwnership doc is good. Had not seen that before I am sure that I will

NSTableView crash when selected.

2009-02-13 Thread Harry Plate
I am struggling w/ a crash in my first Cocoa app that is using a TableView. Some history: my app and its table view was working just fine when I was simply adding NSString objects to the table. Then I started using NSAttributedString instead so I could get the display ellipses. Now after

Re: NSTableView crash when selected.

2009-02-13 Thread Shawn Erickson
On Fri, Feb 13, 2009 at 2:17 PM, Harry Plate ha...@plate.net wrote: I am struggling w/ a crash in my first Cocoa app that is using a TableView. Some history: my app and its table view was working just fine when I was simply adding NSString objects to the table. Then I started using