2
가능하다면 어떻게 할 수 있습니까? 오른쪽에 "OK"버튼을 생성,
NSButton *closeButton = [window standardWindowButton:NSWindowCloseButton]; // Get the existing close button of the window. Check documentation for the other window buttons.
NSView *titleBarView = closeButton.superview; // Get the view that encloses that standard window buttons.
NSButton *myButton = …; // Create custom button to be added to the title bar.
myButton.frame = …; // Set the appropriate frame for your button. Use titleBarView.bounds to determine the bounding rect of the view that encloses the standard window buttons.
[titleBarView addSubview:myButton]; // Add the custom button to the title bar.
경계선없는 창을 사용하고 대체 제목 표시 줄을 직접 그릴 필요가 있다고 생각합니다. –