• 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
Re: selectionShouldChangeInTableView called twice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: selectionShouldChangeInTableView called twice


  • Subject: Re: selectionShouldChangeInTableView called twice
  • From: Graham Cox <email@hidden>
  • Date: Sun, 21 Dec 2008 10:42:58 +1100


On 21 Dec 2008, at 5:23 am, Andre Masse wrote:

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.


Just my 2ยข worth, but this sounds like a horrible UI. If I get interrupted by an alert every time I change a table selection, I'm going to get pretty irritated by that quite quickly. Normally table selections changes are considered "cheap", and the user shouldn't be punished for browsing.

Instead why not just keep a change flag for each modified object, then at some suitable time when the user is moving to a task that needs to use the modified data or else revert to the earlier state, check the flags and only present the alert once. This is how Mail's preferences settings work for example - I can change lots of different settings but only when I close the window am I prompted to save any changes I made. It's much less intrusive.

--Graham


_______________________________________________

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: Rob Rix <email@hidden>
References: 
 >selectionShouldChangeInTableView called twice (From: Andre Masse <email@hidden>)

  • Prev by Date: Re: Using runtime functions to match up object types safely when setting properties
  • Next by Date: Re: Newbie Question: implementing a stack
  • Previous by thread: selectionShouldChangeInTableView called twice
  • Next by thread: Re: selectionShouldChangeInTableView called twice
  • Index(es):
    • Date
    • Thread