X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/524ef6c2fdff9ca4a0a8994197ec46fcafc511a8..08f7c7656d8938806db994a646bb6e2f1a7783a7:/Showcase/Controller.m diff --git a/Showcase/Controller.m b/Showcase/Controller.m index ee2a19c..d7808c7 100755 --- a/Showcase/Controller.m +++ b/Showcase/Controller.m @@ -20,6 +20,7 @@ { [self createStatusItem]; [testTextField setCastsShadow:YES]; + [tabView setAllowsDragging:YES]; statusWindow = [ITTransientStatusWindow sharedWindow]; // [tabView setAllowsDragging:YES]; } @@ -226,6 +227,40 @@ [statusWindow setRotation:([sender floatValue] * (pi / 180))]; } +/*************************************************************************/ +#pragma mark - +#pragma mark ITTransientStatusWindow SUPPORT +/*************************************************************************/ + +- (IBAction)toggleTabDragging:(id)sender +{ + if ([sender state] == NSOnState) { + [tabView setAllowsDragging:YES]; + } else { + [tabView setAllowsDragging:NO]; + } +} + +- (IBAction)toggleCommandDragging:(id)sender +{ + if ([sender state] == NSOnState) { + [tabView setRequiredModifiers:NSCommandKeyMask]; + } else { + [tabView setRequiredModifiers:0]; + } +} + +- (IBAction)toggleControlDragging:(id)sender +{ +} + +- (IBAction)toggleOptionDragging:(id)sender +{ +} + +- (IBAction)toggleShiftDragging:(id)sender +{ +} /*************************************************************************/ #pragma mark -