5 // Created by Claudio Bisegni on
25/12/07.
6 // Copyright
2007 INFN
- National Institute of Nuclear Physics.
All rights reserved.
9 #import "ViewUtility.h"
12 @implementation ViewUtility
13 +(void
) enbleDisableControlView
:(NSView
*)parentView
14 controlState
:(BOOL
)controlState
16 if(!parentView
) return;
17 NSArray
*views
= [parentView subviews
];
18 for(int idx
= 0; idx
< [views count
]; idx
++)
20 NSObject
*obj
= [views objectAtIndex
:idx
];
21 if([obj isKindOfClass
:[NSButton
class]])
23 [(NSButton
*)obj setEnabled
:controlState
];
24 //[obj performSelector
:@selector
(setEnabled
:) withObject
:controlState
];