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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to