I'm trying to get a NSOutlineView to accept secondary clicks, but can't seem to figure it out. I've tried changing secondary clicks from two fingers, to right corner and left corner on the trackpad, and still I don't get any respons in my outline view on mousedown events. can anyone help me?
UPDATE:
If i use this the secondary click is logged, but it still doesnt show up in the rightMouseDown: function.
[NSEvent addLocalMonitorForEventsMatchingMask:NSRightMouseDownMask handler:^(NSEvent* event) {
NSLog(@"%@", event);
return (NSEvent *)event;
}];
UPDATE:
I still don't know how to solve this. My NSCollectionView responds to rightMouseUp but not rightMouseDown. How come?
tnx