Reorganize and fix typography

This commit is contained in:
Matthias Neeracher 2011-08-14 01:57:09 +02:00
parent 1159ba793a
commit 454adfb9d1

View File

@ -97,6 +97,21 @@
withEvent:nil select:YES];
}
- (void)delete:(id)sender
{
NSResponder * responder = [[self window] firstResponder];
while (responder && responder != self) {
if (responder == mediaTable) {
[mediaController remove:sender];
break;
} else if (responder == annotationTable) {
[annotationController remove:sender];
break;
}
responder = [responder nextResponder];
}
}
- (IBAction)toggleMediaPlay:(id)sender
{
if ([[movieView movie] rate] > 0.0f)
@ -171,23 +186,6 @@ static NSTimeInterval sLastSkip = 0.0;
return [[self document] tagDescriptionForName:editingString];
}
#pragma mark Menu commands
- (IBAction)delete:(id)sender
{
NSResponder * responder = [[self window] firstResponder];
while (responder && responder != self) {
if (responder == mediaTable) {
[mediaController remove:sender];
break;
} else if (responder == annotationTable) {
[annotationController remove:sender];
break;
}
responder = [responder nextResponder];
}
}
#pragma mark Split management
- (CGFloat)splitView:(NSSplitView *)splitView constrainMaxCoordinate:(CGFloat)proposedMax ofSubviewAt:(NSInteger)dividerIndex
@ -200,9 +198,11 @@ static NSTimeInterval sLastSkip = 0.0;
return 80.0;
}
// This only prevents resizing the topView in cases where the user does not use the divider (resizing the window primarily).
- (BOOL)splitView:(NSSplitView *)splitView shouldAdjustSizeOfSubview:(NSView *)subview
{
//
// Only resize the bottom view if window is resized or zoomed
//
return subview != [[splitView subviews] objectAtIndex:0];
}