NSTableView in a sheet
NSTableView in a sheet
- Subject: NSTableView in a sheet
- From: Pete Yandell <email@hidden>
- Date: Thu, 28 Mar 2002 17:20:41 +1100
I have a sheet containing an NSTableView, and I have the following
problem:
If I'm currently editing an item in the NSTableView and I click the OK
button on my sheet (which causes the normal orderOut: and endSheet:
calls), the sheet closes without the
tableView:setObjectValue:forTableColumn:row: method being called on my
NSTableView delegate. That means that the data being edited never gets
updated.
If I hit return or click outside the item being edited before pressing
the OK button then everything works happily.
How do I convince the NSTableView to finish editing and submit the
changes to its delegate when the sheet that contains it is closed? I
tried using [myTableView validateEditing], but that seems to have no
effect on an NSTableView.
Pete Yandell
http://pete.yandell.com/
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.