에있는 모든 이벤트를 처리 할 수 없습니다.내가 NSView의 서브 클래스에 하위 뷰으로 추가됩니다 NSButton의 내 서브 클래스를 가지고 NSButton 서브 클래스
Google에서 찾은 모든 예제를 시도했지만 이벤트를 처리 할 수 없습니다. 버튼의 init 메소드에서
: 나는이 시도 의미
[self setTarget:self];
[self setAction:@selector(clicked)];
도
[self setTarget:self];
[self setAction:@selector(methodWithNSEventParam:)];
은 또한 그들이 주석 있습니다.
'클릭하지 마세요'.
(아무도 호출하지 않은) 다음 방법을 재정의합니다. (공극)
는의 mouseEntered (NSEvent *) theEvent
(보이드)는의 mouseExited (NSEvent *) theEvent
(BOOL) mouseDownCanMoveWindow
(무효) mouseDown (NSEvent *) theEvent
(무효)와 mouseUp (NSEvent *) theEvent
(NSVi ew *) hitTest : (NSPoint) a