Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
reduces console output
Browse files Browse the repository at this point in the history
  • Loading branch information
HBehrens committed Feb 1, 2012
1 parent f856767 commit f87d1e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
5 changes: 3 additions & 2 deletions CamHolderApp/CHDocument.m
Expand Up @@ -150,7 +150,8 @@ -(void)setIsAutoFocusActive:(BOOL)isAutoFocusActive_ {

-(void)setFocusFactor:(float)focusFactor_ {
focusFactor = MAX(0, MIN(1, focusFactor_));
[_cameraControl setAbsoluteFocus:focusFactor];
if(!self.isAutoFocusActive)
[_cameraControl setAbsoluteFocus:focusFactor];
}

-(void)readCameraValuesIntoProperties {
Expand Down Expand Up @@ -270,7 +271,7 @@ -(IBAction)toggleInspector:(id)sender {

-(void)setContentSize:(NSSize)contentSize_ {
contentSize = contentSize_;
NSLog(@"setContentSize: %@", NSStringFromSize(contentSize));
//NSLog(@"setContentSize: %@", NSStringFromSize(contentSize));
}


Expand Down
4 changes: 1 addition & 3 deletions CamHolderApp/CHWindowController.m
Expand Up @@ -165,7 +165,7 @@ -(CHDocument *)document {
}

-(void)setDocument:(CHDocument *)document {
NSLog(@"setDocument: %@", document);
//NSLog(@"setDocument: %@", document);
[self.document removeObserver:self forKeyPath:@"activeCaptureDevice"];
[self.document removeObserver:self forKeyPath:@"showsInspector"];
[self.document removeObserver:self forKeyPath:@"contentSize"];
Expand Down Expand Up @@ -297,12 +297,10 @@ -(void)setIsFullscreen:(BOOL)isFullscreen_ {


-(void)finishSetIsFullscreenNo {
NSLog(@"probe");
if(!NSEqualRects(self.window.frame, _nonFullScreenFrame)) {
[self performSelector:@selector(finishSetIsFullscreenNo) withObject:nil afterDelay:0.1];
return;
}
NSLog(@"passed");
_ignoreWindowDidResize = NO;
self.window.hasShadow = YES;
[[NSApplication sharedApplication] setPresentationOptions:NSApplicationPresentationDefault];
Expand Down
1 change: 0 additions & 1 deletion CamHolderApp/UVCCameraControl.m
Expand Up @@ -359,7 +359,6 @@ - (BOOL)setDiscreteValue:(float)value fromSet:(NSArray*)discreteValues forContro
uvc_range_t range = [self getRangeForControl:control];
intval = [self mapValue:value fromMin:0 max:1 toMin:range.min max:range.max];
}
NSLog(@"inval: %5d", intval);
return [self setData:intval withLength:control->size forSelector:control->selector at:control->unit];
}

Expand Down

0 comments on commit f87d1e9

Please sign in to comment.