如何遍历NSView下的子视图呢for (NSView *aview in [SuperV subviews]) { if([aview isMemberOfClass:[NSButton class]]) { NSButton *cButton=(NSButton *)aview; [cButton setBezelStyle:NSRoundedBezelStyle]; [cButton setWantsLayer:YES]; [cButton setBordered:NO]; } }