如何在 Cocoa 中调整带有显示三角形的额外框的大小?
- (IBAction)disclosureTriangleClicked:(id)sender {
NSWindow *window =[sender window];
NSRect frame = [window frame];
[otherBox frame].size.height +14;
switch([sender state]) {
case NSOnState:
[otherBox setHidden:NO];
//Must resize!
break;
case NSOffState:
[otherBox setHidden:YES];
//Must resize!
break;
default:
break;
}