selectionShouldChangeInTableView called twice
selectionShouldChangeInTableView called twice
- Subject: selectionShouldChangeInTableView called twice
- From: Andre Masse <email@hidden>
- Date: Sat, 20 Dec 2008 13:23:37 -0500
Hi,
I'm using a master/detail view in my application. If the user select
another row in the master table and the detail has been modified, I
want to present an alert to save, cancel or return to detail. I'm not
using binding here, only datasource and delegate methods. So in -
selectionShouldChangeInTableView: I return YES if the user saved or
cancelled and NO if he choose the third option.
Problem is that selectionShouldChangeInTableView is called twice when
returning NO. Having googled it, I found a couple of matches on this
list and no replies... To make sure this is a bug, I made a test
project available here and will radar it if it has no workaround:
http://idisk.mac.com/miyano/Public/TestRowChanges.zip
Now, since I can't rely on -selectionShouldChangeInTableView:, how do
you guys handle this?
Thanks,
Andre Masse
_______________________________________________
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