커서가보기 위로 넘어갈 때 커서를 변경하려고하지만 제대로 작동하지 않으므로 올바르게 코딩하지 않은 것으로 보입니다.특정보기에 대한 NSCursor 변경
는 난의 AppController 클래스가 그것을하는 .m 파일의 내가 당신이 [handCursor setOnMouseEntered:YES]
전화를 잊어 버린이
- (void) awakeFromNib {
//set up the cursors
NSCursor * handCursor = [NSCursor closedHandCursor];
//make a box
Box* newBox = [[Box alloc] initWithFrame:NSMakeRect(10.0, 10.0, 100.0, 100.0)];
//set up the rect for the cursor change
NSRect rectForCursor = [newBox frame];
[newBox addCursorRect:rectForCursor cursor:handCursor];
//add box to main win
[[mainWin contentView] addSubview:newBox];
}
나는 그것을 시도했다. 그리고 그것은 아직도 '당신을위한 수프 없음'을 말했다. .. – PruitIgoe