Changed layout to accommodate locking

Fixed Autolayout hickups
Added lock screen
Removed unused views
Some refactorings
This commit is contained in:
michael starke
2013-06-08 23:54:57 +02:00
parent a014f2925c
commit 53850d8d35
26 changed files with 280 additions and 840 deletions

View File

@@ -14,7 +14,9 @@
- (void)validate {
if(![self.view menu]) {
id target = [NSApp targetForAction:[self action] to:nil from:self];
[self setEnabled:( nil != target )];
BOOL isValid = [[[[NSApplication sharedApplication] keyWindow] windowController] validateToolbarItem:self];
[self setEnabled:( isValid && (nil != target) )];
}
}
@end