diff --git a/AppKit/CPCollectionView.j b/AppKit/CPCollectionView.j index 11d4b2ed6..80957124c 100644 --- a/AppKit/CPCollectionView.j +++ b/AppKit/CPCollectionView.j @@ -313,7 +313,7 @@ [_items[index] setSelected:YES]; if ([_delegate respondsToSelector:@selector(collectionViewDidChangeSelection:)]) - [_delegate collectionViewDidChangeSelection:self] + [_delegate collectionViewDidChangeSelection:self]; } /*! diff --git a/AppKit/CPColor.j b/AppKit/CPColor.j index b6eda360c..3203257bf 100644 --- a/AppKit/CPColor.j +++ b/AppKit/CPColor.j @@ -422,7 +422,7 @@ var cachedBlackColor, parseInt(parts[1], 10) / 255.0, parseInt(parts[2], 10) / 255.0, parts[3] ? parseInt(parts[3], 10) / 255.0 : 1.0 - ] + ]; _cssString = aString; diff --git a/AppKit/CPCursor.j b/AppKit/CPCursor.j index 45b3f1ab8..d550fb10c 100755 --- a/AppKit/CPCursor.j +++ b/AppKit/CPCursor.j @@ -197,7 +197,7 @@ var currentCursor = nil, + (void)unhide { - [self _setCursorCSS:[currentCursor _cssString]] + [self _setCursorCSS:[currentCursor _cssString]]; } + (void)setHiddenUntilMouseMoves:(BOOL)flag diff --git a/AppKit/CPKeyValueBinding.j b/AppKit/CPKeyValueBinding.j index 09ae8a59e..3aabc98a6 100644 --- a/AppKit/CPKeyValueBinding.j +++ b/AppKit/CPKeyValueBinding.j @@ -108,7 +108,7 @@ var CPBindingOperationAnd = 0, count = allKeys.length; while (count--) - [anObject unbind:[bindings objectForKey:allKeys[count]]] + [anObject unbind:[bindings objectForKey:allKeys[count]]]; [bindingsMap removeObjectForKey:[anObject hash]]; } diff --git a/AppKit/CPMenu/_CPMenuManager.j b/AppKit/CPMenu/_CPMenuManager.j index e022f8ddc..18d1021e1 100644 --- a/AppKit/CPMenu/_CPMenuManager.j +++ b/AppKit/CPMenu/_CPMenuManager.j @@ -96,7 +96,7 @@ var SharedMenuManager = nil; // Close Menu Event. if (type === CPAppKitDefined) - return [self completeTracking] + return [self completeTracking]; [CPApp setTarget:self selector:@selector(trackEvent:) forNextEventMatchingMask:CPPeriodicMask | CPMouseMovedMask | CPLeftMouseDraggedMask | CPLeftMouseUpMask | CPAppKitDefinedMask untilDate:nil inMode:nil dequeue:YES]; diff --git a/AppKit/CPMenuItem/_CPMenuItemStandardView.j b/AppKit/CPMenuItem/_CPMenuItemStandardView.j index db15e5417..63777e96f 100644 --- a/AppKit/CPMenuItem/_CPMenuItemStandardView.j +++ b/AppKit/CPMenuItem/_CPMenuItemStandardView.j @@ -39,7 +39,7 @@ var SUBMENU_INDICATOR_COLOR = nil, SUBMENU_INDICATOR_COLOR = [CPColor grayColor]; _CPMenuItemSelectionColor = [CPColor colorWithCalibratedRed:95.0 / 255.0 green:131.0 / 255.0 blue:185.0 / 255.0 alpha:1.0]; - _CPMenuItemTextShadowColor = [CPColor colorWithCalibratedRed:26.0 / 255.0 green: 73.0 / 255.0 blue:109.0 / 255.0 alpha:1.0] + _CPMenuItemTextShadowColor = [CPColor colorWithCalibratedRed:26.0 / 255.0 green: 73.0 / 255.0 blue:109.0 / 255.0 alpha:1.0]; var bundle = [CPBundle bundleForClass:self]; diff --git a/AppKit/CPMenuItem/_CPMenuItemView.j b/AppKit/CPMenuItem/_CPMenuItemView.j index d4ef798f0..7b5438a17 100644 --- a/AppKit/CPMenuItem/_CPMenuItemView.j +++ b/AppKit/CPMenuItem/_CPMenuItemView.j @@ -43,7 +43,7 @@ var _CPMenuItemSelectionColor = nil, return; _CPMenuItemSelectionColor = [CPColor colorWithCalibratedRed:95.0 / 255.0 green:131.0 / 255.0 blue:185.0 / 255.0 alpha:1.0]; - _CPMenuItemTextShadowColor = [CPColor colorWithCalibratedRed:26.0 / 255.0 green: 73.0 / 255.0 blue:109.0 / 255.0 alpha:1.0] + _CPMenuItemTextShadowColor = [CPColor colorWithCalibratedRed:26.0 / 255.0 green: 73.0 / 255.0 blue:109.0 / 255.0 alpha:1.0]; var bundle = [CPBundle bundleForClass:self]; diff --git a/AppKit/CPSplitView.j b/AppKit/CPSplitView.j index 70f1a9282..4a90dcf99 100644 --- a/AppKit/CPSplitView.j +++ b/AppKit/CPSplitView.j @@ -152,7 +152,7 @@ var CPSplitViewHorizontalImage = nil, _isPaneSplitter = shouldBePaneSplitter; if(_DOMDividerElements[_drawingDivider]) - [self _setupDOMDivider] + [self _setupDOMDivider]; // The divider changes size when pane splitter mode is toggled, so the // subviews need to change size too. diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index c8bac1aae..3a2b0f0d9 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -654,9 +654,9 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; return; _sourceListActiveGradient = [aDictionary valueForKey:CPSourceListGradient]; - _sourceListActiveTopLineColor = [aDictionary valueForKey:CPSourceListTopLineColor] + _sourceListActiveTopLineColor = [aDictionary valueForKey:CPSourceListTopLineColor]; _sourceListActiveBottomLineColor = [aDictionary valueForKey:CPSourceListBottomLineColor]; - [self setNeedsDisplay:YES] + [self setNeedsDisplay:YES]; } /*! @@ -3481,7 +3481,7 @@ var CPTableViewDataSourceKey = @"CPTableViewDataSourceKey", _gridColor = [aCoder decodeObjectForKey:CPTableViewGridColorKey] || [CPColor grayColor]; _gridStyleMask = [aCoder decodeIntForKey:CPTableViewGridStyleMaskKey] || CPTableViewGridNone; - _usesAlternatingRowBackgroundColors = [aCoder decodeObjectForKey:CPTableViewUsesAlternatingBackgroundKey] + _usesAlternatingRowBackgroundColors = [aCoder decodeObjectForKey:CPTableViewUsesAlternatingBackgroundKey]; _alternatingRowBackgroundColors = [[CPColor whiteColor], [CPColor colorWithRed:245.0 / 255.0 green:249.0 / 255.0 blue:252.0 / 255.0 alpha:1.0]]; diff --git a/AppKit/CPView.j b/AppKit/CPView.j index 3085a06fe..56025cd47 100644 --- a/AppKit/CPView.j +++ b/AppKit/CPView.j @@ -1679,7 +1679,7 @@ setBoundsOrigin: var theWindow = [self window]; [theWindow _noteUnregisteredDraggedTypes:_registeredDraggedTypes]; - [_registeredDraggedTypes addObjectsFromArray:pasteboardTypes] + [_registeredDraggedTypes addObjectsFromArray:pasteboardTypes]; [theWindow _noteRegisteredDraggedTypes:_registeredDraggedTypes]; _registeredDraggedTypesArray = nil; diff --git a/AppKit/CPWindow/CPWindow.j b/AppKit/CPWindow/CPWindow.j index 00cd3b8de..caf713d63 100644 --- a/AppKit/CPWindow/CPWindow.j +++ b/AppKit/CPWindow/CPWindow.j @@ -1600,7 +1600,7 @@ CPTexturedBackgroundWindowMask if (!pasteboardTypes) return; - [_inclusiveRegisteredDraggedTypes minusSet:pasteboardTypes] + [_inclusiveRegisteredDraggedTypes minusSet:pasteboardTypes]; if ([_inclusiveRegisteredDraggedTypes count] === 0) _inclusiveRegisteredDraggedTypes = nil; @@ -1631,7 +1631,7 @@ CPTexturedBackgroundWindowMask return; [self _noteUnregisteredDraggedTypes:_registeredDraggedTypes]; - [_registeredDraggedTypes addObjectsFromArray:pasteboardTypes] + [_registeredDraggedTypes addObjectsFromArray:pasteboardTypes]; [self _noteRegisteredDraggedTypes:_registeredDraggedTypes]; _registeredDraggedTypesArray = nil; @@ -1644,7 +1644,7 @@ CPTexturedBackgroundWindowMask - (CPArray)registeredDraggedTypes { if (!_registeredDraggedTypesArray) - _registeredDraggedTypesArray = [_registeredDraggedTypes allObjects] + _registeredDraggedTypesArray = [_registeredDraggedTypes allObjects]; return _registeredDraggedTypesArray; } diff --git a/AppKit/Cib/CPCib.j b/AppKit/Cib/CPCib.j index f9a3eeafc..5cc8e4fd2 100644 --- a/AppKit/Cib/CPCib.j +++ b/AppKit/Cib/CPCib.j @@ -150,7 +150,7 @@ var CPCibObjectDataKey = @"CPCibObjectDataKey"; var topLevelObjects = [anExternalNameTable objectForKey:CPCibTopLevelObjects]; - [objectData instantiateWithOwner:owner topLevelObjects:topLevelObjects] + [objectData instantiateWithOwner:owner topLevelObjects:topLevelObjects]; [objectData establishConnectionsWithOwner:owner topLevelObjects:topLevelObjects]; [objectData awakeWithOwner:owner topLevelObjects:topLevelObjects]; diff --git a/CommonJS/lib/cappuccino/cib-analysis-tools.j b/CommonJS/lib/cappuccino/cib-analysis-tools.j index cab6a919a..2427987f8 100644 --- a/CommonJS/lib/cappuccino/cib-analysis-tools.j +++ b/CommonJS/lib/cappuccino/cib-analysis-tools.j @@ -17,7 +17,7 @@ function findCibClassDependencies(cibPath) { } // make sure CPApp is init'd - [CPApplication sharedApplication] + [CPApplication sharedApplication]; try { var x = [cib pressInstantiate]; @@ -61,7 +61,7 @@ function findCibClassDependencies(cibPath) { var topLevelObjects = nil;//[anExternalNameTable objectForKey:CPCibTopLevelObjects]; - [objectData instantiateWithOwner:owner topLevelObjects:topLevelObjects] + [objectData instantiateWithOwner:owner topLevelObjects:topLevelObjects]; // [objectData establishConnectionsWithOwner:owner topLevelObjects:topLevelObjects]; // [objectData awakeWithOwner:owner topLevelObjects:topLevelObjects]; diff --git a/Foundation/CPArray.j b/Foundation/CPArray.j index 70d33f9db..27acbd1f2 100755 --- a/Foundation/CPArray.j +++ b/Foundation/CPArray.j @@ -796,7 +796,7 @@ */ - (CPArray)sortedArrayUsingSelector:(SEL)aSelector { - var sorted = [self copy] + var sorted = [self copy]; [sorted sortUsingSelector:aSelector]; diff --git a/Foundation/CPKeyValueObserving.j b/Foundation/CPKeyValueObserving.j index 66d08fbb0..12f2f6e51 100644 --- a/Foundation/CPKeyValueObserving.j +++ b/Foundation/CPKeyValueObserving.j @@ -738,7 +738,7 @@ var _kvoInsertMethodForMethod = function _kvoInsertMethodForMethod(theKey, theMe { [self willChange:CPKeyValueChangeInsertion valuesAtIndexes:[CPIndexSet indexSetWithIndex:index] forKey:theKey]; theMethod.method_imp(self, _cmd, object, index); - [self didChange:CPKeyValueChangeInsertion valuesAtIndexes:[CPIndexSet indexSetWithIndex:index] forKey:theKey] + [self didChange:CPKeyValueChangeInsertion valuesAtIndexes:[CPIndexSet indexSetWithIndex:index] forKey:theKey]; } } @@ -748,7 +748,7 @@ var _kvoReplaceMethodForMethod = function _kvoReplaceMethodForMethod(theKey, the { [self willChange:CPKeyValueChangeReplacement valuesAtIndexes:[CPIndexSet indexSetWithIndex:index] forKey:theKey]; theMethod.method_imp(self, _cmd, index, object); - [self didChange:CPKeyValueChangeReplacement valuesAtIndexes:[CPIndexSet indexSetWithIndex:index] forKey:theKey] + [self didChange:CPKeyValueChangeReplacement valuesAtIndexes:[CPIndexSet indexSetWithIndex:index] forKey:theKey]; } } @@ -758,7 +758,7 @@ var _kvoRemoveMethodForMethod = function _kvoRemoveMethodForMethod(theKey, theMe { [self willChange:CPKeyValueChangeRemoval valuesAtIndexes:[CPIndexSet indexSetWithIndex:index] forKey:theKey]; theMethod.method_imp(self, _cmd, index); - [self didChange:CPKeyValueChangeRemoval valuesAtIndexes:[CPIndexSet indexSetWithIndex:index] forKey:theKey] + [self didChange:CPKeyValueChangeRemoval valuesAtIndexes:[CPIndexSet indexSetWithIndex:index] forKey:theKey]; } } diff --git a/Foundation/CPObject.j b/Foundation/CPObject.j index c518f4f70..34d023421 100644 --- a/Foundation/CPObject.j +++ b/Foundation/CPObject.j @@ -548,7 +548,7 @@ CPLog(@"Got some class: %@", inst); objj_class.prototype.toString = objj_object.prototype.toString = function() { if (this.isa && class_getInstanceMethod(this.isa, "description") != NULL) - return [this description] + return [this description]; else return String(this) + " (-description not implemented)"; } diff --git a/Foundation/CPTimer.j b/Foundation/CPTimer.j index 6e14ba46a..5c25f1c59 100644 --- a/Foundation/CPTimer.j +++ b/Foundation/CPTimer.j @@ -62,7 +62,7 @@ */ + (CPTimer)scheduledTimerWithTimeInterval:(CPTimeInterval)seconds target:(id)aTarget selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)shouldRepeat { - var timer = [[self alloc] initWithFireDate:[CPDate dateWithTimeIntervalSinceNow:seconds] interval:seconds target:aTarget selector:aSelector userInfo:userInfo repeats:shouldRepeat] + var timer = [[self alloc] initWithFireDate:[CPDate dateWithTimeIntervalSinceNow:seconds] interval:seconds target:aTarget selector:aSelector userInfo:userInfo repeats:shouldRepeat]; //add to the runloop [[CPRunLoop currentRunLoop] addTimer:timer forMode:CPDefaultRunLoopMode];