遍历NSView下的子视图方法

如何遍历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];
              
          }
    }

  

原文地址:https://www.cnblogs.com/dragonbattlesun/p/3888404.html