• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
selectionShouldChangeInTableView called twice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: selectionShouldChangeInTableView called twice
      • From: Andre Masse <email@hidden>
    • Re: selectionShouldChangeInTableView called twice
      • From: Corbin Dunn <email@hidden>
    • Re: selectionShouldChangeInTableView called twice
      • From: Jerry Krinock <email@hidden>
    • Re: selectionShouldChangeInTableView called twice
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Question Regarding the Memory Address of Objects
  • Next by Date: NSBezierPath
  • Previous by thread: Re: toolbar to view gradient displaying correctly only sometimes?
  • Next by thread: Re: selectionShouldChangeInTableView called twice
  • Index(es):
    • Date
    • Thread