List:

I have a table view that uses the NSTableDataSource protocol (you *do* remember that, don't you? :-) ). I have the standard data source methods provided (count/obj value/set obj value) and all works well.

All except one thing. I was trying out the whole type select thing, marveling at how I didn't have to supply delegate behavior for it to work on a standard column with a text cell. I'd get random crashes, however:

Program received signal:  “EXC_BAD_ACCESS”.

Backtrace:
#0  0x95cbc6ec in objc_msgSend ()
#1  0x9003cee4 in -[NSCell _setContents:] ()
#2  0x9005130a in -[NSCell setObjectValue:] ()
#3  0x90051203 in -[NSActionCell setObjectValue:] ()
#4  0x900f9174 in -[NSTableView preparedCellAtColumn:row:] ()
#5  0x905dfd40 in -[NSTableView _typeSelectStringForColumn:row:] ()
#6 0x903b7287 in -[NSTableView _nextTypeSelectMatchFromRow:toRow:forString:] ()
#7  0x903b6cfe in -[NSTableView _performTypeSelect:] ()
#8  0x902c99df in -[NSTableView keyDown:] ()
#9  0x901334c5 in -[NSWindow sendEvent:] ()
#10 0x900ff431 in -[NSApplication sendEvent:] ()
#11 0x9005ce27 in -[NSApplication run] ()
#...

Ouch! I have a standard NSTableView with a vanilla setup, so I couldn't figure out what was going on. I then tried disabling type select (unchecking the box in IB). Same result.

So I started noticing a pattern ... any time I'd press the *space bar*, it would crash the same way each time. No other keys cause it (that I could determine).

  Any ideas?

--
I.S.



_______________________________________________

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