• 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: selectionIndexesForProposedSelection on mouse Up or mouse Down
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: selectionIndexesForProposedSelection on mouse Up or mouse Down


  • Subject: Re: selectionIndexesForProposedSelection on mouse Up or mouse Down
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 13 May 2011 10:56:35 -0700

On May 13, 2011, at 10:36, Corbin Dunn wrote:

> On May 12, 2011, at 1:42 PM, Brad Stone wrote:
>
>> I put in NSLog calls to show me when "proposed" and "didChange" get called.  NSTableView's delegate gets called on mouseDown while NSOutlineView on mouseUp.
>
> That shouldn't be true...and I'm not sure I believe it. Do you have a backtrace showing this case?

I was able to confirm the difference in behavior that Brad observed, but I didn't try to find the cause.

In the example I looked at, there were two implementation differences between the table and outline view:

-- The outline view data source implements 'outlineView:writeItems:toPasteboard:' (etc), while the table view data source does not implement 'tableView:writeRowsWithIndexes:toPasteboard:' (etc).

-- The outline view delegate implements 'outlineView:selectionIndexesForProposedSelection:', while the table view (which dates back to older code) uses 'tableView:shouldSelectRow:'.

I'm guessing one of these causes the difference in behavior, most likely the first.


_______________________________________________

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: selectionIndexesForProposedSelection on mouse Up or mouse Down
      • From: Corbin Dunn <email@hidden>
References: 
 >selectionIndexesForProposedSelection on mouse Up or mouse Down (From: Brad Stone <email@hidden>)
 >Re: selectionIndexesForProposedSelection on mouse Up or mouse Down (From: Quincey Morris <email@hidden>)
 >Re: selectionIndexesForProposedSelection on mouse Up or mouse Down (From: Brad Stone <email@hidden>)
 >Re: selectionIndexesForProposedSelection on mouse Up or mouse Down (From: Corbin Dunn <email@hidden>)

  • Prev by Date: RESOLVED? Re: 10.6, sheet controls not responding?
  • Next by Date: Re: No more .ibplugins in Xcode 4, so now what...?
  • Previous by thread: Re: selectionIndexesForProposedSelection on mouse Up or mouse Down
  • Next by thread: Re: selectionIndexesForProposedSelection on mouse Up or mouse Down
  • Index(es):
    • Date
    • Thread