Hi,

In my outline view I need to allow multiple selection, but only allow all 
selected items to have the same parent. In other words as soon as the user 
selects an item with a different parent to the currently selected items even if 
they are in add to selection mode, the previously selected items get deselected.

The NSOutlineView documentation does not seem to be complete on the relevant 
methods. According to the NSTableView documentation if the delegate method: 
tableView:selectionIndexesForProposedSelection is implemented then 
selectRow:byExtendingSelection will not be called and the documentation for 
both is available. But for NSOutlineView there doesn't appear any documentation 
for the delegate method outlineView:shouldSelectItem and the information in the 
header file only says that for performance reasons it is better to use 
outlineView:selectionIndexesForProposedSelection:

But there is not enough information like for the table view documentation as to 
whether either of methods are mutually exclusive or not, but also what are the 
sequence of events and if it is possible to modify the current selection in 
these methods and whether these are the right places to make the appropriate 
changes to achieve the selection behaviour we need.

Thanks
Kevin
_______________________________________________

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