Distinguishing a single click from a double click in Cocoa on the Mac

后端 未结 5 1081
一向
一向 2021-02-01 21:05

I have a custom NSView (it\'s one of many and they all live inside an NSCollectionView — I don\'t think that\'s relevant, but who knows). When I click

5条回答
  •  耶瑟儿~
    2021-02-01 21:38

    Personally, I think you need to ask yourself why you want this non-standard behaviour.

    Can you point to any other application which treats the first click in a double-click as being different from a single-click? I can't think of any...

提交回复
热议问题