Hi,
I have a separate panel displaying properies of selected row in NSTableView (there are quite a number of them so editing right in table doesn't look like a good idea).
I'm subscribing to notification for selection change and when I receive it, I set the objects to edit for the property editor. This works fine until I start selecting rows using keyboard. In this case I never get any notifications, but I can see that selected row changes as a result of keyboard commands (via debug button which dumps required properties of controls .
What would be a right way to get notifications for that kind of selection changes? I can thing of subclassing NSTableView and handling keyboard events. Is there any other more elegant way?
UPD: NSTableView's and NSOutlineView's delegate provide functionality that supersedes one provided by notification and notifies on keyboard selection changes. I've missed it when reading docs.
I have a separate panel displaying properies of selected row in NSTableView (there are quite a number of them so editing right in table doesn't look like a good idea).
I'm subscribing to notification for selection change and when I receive it, I set the objects to edit for the property editor. This works fine until I start selecting rows using keyboard. In this case I never get any notifications, but I can see that selected row changes as a result of keyboard commands (via debug button which dumps required properties of controls .
What would be a right way to get notifications for that kind of selection changes? I can thing of subclassing NSTableView and handling keyboard events. Is there any other more elegant way?
UPD: NSTableView's and NSOutlineView's delegate provide functionality that supersedes one provided by notification and notifies on keyboard selection changes. I've missed it when reading docs.