• 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: Andreas Mayer <email@hidden>
  • Date: Sun, 21 Dec 2008 20:47:26 +0100


Am 21.12.2008 um 16:53 Uhr schrieb Andre Masse:

I'm using a similar design, not by locking the fields but setting a "isDirty" flag in the model after the user start editing the record.

That's exactly the point I was trying to make. Editing should be a distinct mode, consciously chosen by the user. That way it is not a surprise, that ending the mode also has to be confirmed.


This hole problem arises when I want to "disable" the master view. I thought using -selectionShouldChangeInTableView will serve this purpose


What about

- (NSIndexSet *)tableView:(NSTableView *)tableView selectionIndexesForProposedSelection: (NSIndexSet*)proposedSelectionIndexes

If all else fails, you can always subclass the view and overwrite - mouseDown: and/or keyDown:.


Andreas _______________________________________________

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: Andreas Mayer <email@hidden>
References: 
 >selectionShouldChangeInTableView called twice (From: Andre Masse <email@hidden>)
 >Re: selectionShouldChangeInTableView called twice (From: Jerry Krinock <email@hidden>)
 >Re: selectionShouldChangeInTableView called twice (From: Andre Masse <email@hidden>)
 >Re: selectionShouldChangeInTableView called twice (From: Andreas Mayer <email@hidden>)
 >Re: selectionShouldChangeInTableView called twice (From: Andre Masse <email@hidden>)

  • Prev by Date: Re: Stacks & Memory Management.
  • Next by Date: Re: selectionShouldChangeInTableView called twice
  • Previous by thread: Re: selectionShouldChangeInTableView called twice
  • Next by thread: Re: selectionShouldChangeInTableView called twice
  • Index(es):
    • Date
    • Thread