Release date: 2013-11-28
Cappuccino 0.9.7 introduces Aristo 2, Objective-J 2.0 and over 500 other changes and improvements.
Highlights in this release:
CPView ('zoom in' or out within a view and all its subviews).CPTableView. While Cappuccino already supported view based table views, this new API matches Cocoa's and allows more convenient table customisation in Interface Builder and easier use of bindings (such as when binding a custom table cell view to a key of the row data).CPDatePicker.CPLocale.- CPObject performSelector:withObject:afterDelay:.CPError.CPByteCountFormatter.- CPURLConnection sendSynchronousRequest: return nil if CPHTTPRequest failed.CPNotFound to an index set.CPError class.- CPArray objectsAtIndexes: when the array is a native array (up to 6X).- CPMutableArray removeObjectIdenticalTo: when the array is a native array (up to 10X).- CPObject performSelector:withObject:afterDelay: and related methods.- CPArray enumerateObjectsWithOptions:usingBlock:.CFBundle.identifier, CFBundle.bundleWithIdentifier, - CPBundle -bundleWithIdentifier.+ CPException raise:format:.- CPNumberFormatter localizedStringFromNumber:numberStyle:.setValue:forKey: now automatically unwraps CPValue.objj_getClassList().OBJJ_PROGRESS_CALLBACK calls, allowing smoother progress bars.- CPDictionary description. This makes it easier to find an item in a large dictionary.CPURL and CFURL.Bug Fixes:
CPDescriptionOfObject when a JSON object property has a null value.CPPredicate TRUEPREDICATE didn't work.CPNumberFormatter.removeObjectsInArray:.mutableArrayValueForKey: … removeObjectsInArray should remove all instances of the found objects.CPDecimalCompare problems when comparing to zero.CPDecimalRound should return a result in all cases.CPString compare: method against nil and CPNull.CPNull.CPMutableArray had broken removeObject:.- CPMutableArray removeObjectIdenticalTo: did not remove all instances, was documented incorrectly.CPAttributedString problems with empty strings and out of range indexes.- CPDictionary setObject:forKey: will log deprecated warning when passing nil object or key.CPDecimal to handle decimal numbers with leading zeros.- CPUndoManager isUndoRegistrationEnabled.CPNumberFormatter formatted @“” wrong.CPString stringByTrimmingCharactersInSet.CPArray did not allow binding to @count.CFBundle.prototype.bundleURL() did not return an absolute URL.- CPBundle bundleWithIdentifier did not create CPBundle when necessary.[CPExpression isEqual:nil] and [CPPredicate isEqual:nil].CGRectFromString made bad CGSizeFromString call.CPArray/CPDictionary description if a value was the window object.CPArray/CPDictionary description containing self referential JS object.CPNumber vs nil or CPNull didn't throw an exception.CPTimer number of seconds interval set to 0.1 if equal to 0.0, like in Cocoa.CPNumberFormatter minimum and maximum wrong encoding when set to nil.CPNumber numberWithBool: not returning a number.- CPCollectionView draggingViewForItemsAtIndexes:withEvent:offset:.CPTableView.CPTableView with Lion's view-based API.CPThemeStateEditable in CPTextField setEditable:.- CPCib initWithContentsOfURL: return nil if the returned data is nil.scrollRectToVisible when CPTokenField becomes first responder.CPBox themable.CPLevelIndicator themable.CPSplitView themable.CPBrowser themable.CPCursor will now look in the theme to get system cursors.CPTokenField menu per token support (tokenField:menuForRepresentedObject:).CPGradient initWithStartingColor:endingColor:.CPShadow mutable (e.g. setShadowColor:).- CPGradient drawInBezierPath:angle:.- CPShadow set.value and isIndeterminate binding support for CPProgressIndicator.+ CPBezierPath bezierPathWithRoundedRect:xRadius:yRadius:.CPMenuItem.selectAll: and deselectAll:.selectedValue, selectedTag, selectedIndex, enabled and hidden.shouldReorderColumn delegate method for CPTableView._CPStateMarker, instead of CPString for selection markers.CPSegmentedControl segment selection bindings support.CGContextSetLineDash.- CPBezierPath setLineDash: and getLineDash:.- CPDocumentController documentForWindow and hasEditedDocuments.CPDatePicker.CPLocale.CPTokenField sends focus and blur notifications.- CPColor hueComponent, saturationComponent and brightnessComponent.CPPasteBoard setString:forType: to catch strange bugs earlier.CGContextDrawRadialGradient support.CGPathContainsPoint.CPPopover theamability.- CPTextField deleteForward:.shouldExpand/Collapse delegate for CPOutlineView.CPView (scaleUnitSquareToSize and setScaleSize).selectionIndexesForProposedSelection in CPOutlineView.userInfo for CPTextDidEndEditingNotification.CPTableView drop view themable.CGContext: render any arbitrary drawing to a pattern context and use that as a fill or stroke pattern.CPAlert custom didEnd selector or block.Bug Fixes:
CPCollectionView dragging: bug where the dragging view was created from content instead of selection.CPTableView auto-save columns.CPFlashView minor bugs.CPArrayController selection binding failure in retrieving initial selection values.CPBrowser.scrollRectToVisible in CPView.CPCollectionView when the collection view is a drop destination but not a source.CPWindow.CPStepper.CPMenu.CPBox in Chrome.CPBox with CPBezelBorder had unexpected inner shadow.- CPWindow setRepresentedFilename: set as a string, not a CPURL.CPArrayController add: adding wrong object, insert: not inserting in right position when there's a selection.CPWebView scroll-wheel.isClockwise property to CGPath.CGContextCanvas and CGPath.CPColorWithImages and CPImageInBundle.CGContext fixes/enhancements.CPToolbar calls incorrect notification method.CPView removeFromSuperview performance.CPClipView could result in duplicate subviews.view(Will/Did)MoveToSuperview:.CGPathEqualToPath did not compare all subpath types.CPWebScriptObject callWebScriptMethod:withArguments:.mouseEntered and mouseExited was mixed up for custom views.resizeWithOldSuperviewSize not working like in Cocoa.CPTextField when using bindings.CPCollectionView threw exception.resizeWithOldSuperviewSize did not maintain size ratio.CPTextFieldInputOwner set.orderOut: was not called for a popover, it would not detach from its parent.CPThemeStateSelectedTableDataView.-tableView:dataViewForTableColumn:row: and -outlineView:dataViewForTableColumn:item:
CPTableViewSelectionHighlightStyleNone had white text.CPDocumentController missing method currentDocument.setAnimates: on a popover would only be applied after closing/reopening the popover._CPImageAndTextView.j.CPMenuBar theming.CPNullPlaceholderBindingOption in binding was setting the actual value of a text field instead of just its placeholder.CPMenu ghosts after many right clicks.CPColor colorWithHue:saturation:brightness: were in degrees and percent rather than factors.- CPColor hsbComponents range.CPColor colorWithHue:saturation:brightness: parameters not clamped.CPColor colorWithHue:saturation:brightness: returning undefined.CPComboBox popupList should close if mouse is clicked outside of the control.CPPopover in a secondary platform window opened in the main window.CPAlert always shows on main platform window.[pasteboard declareTypes:...owner:nil] would emit a warning.CPBezierPath.CPGradient.CGPath wrong when creating an arc.CPCollectionView range bounds exception if shift key was held for first selection.removeTableColumn: did not remove column from tableColumns array.CPWindows contentView “Autoresizes Subviews” set in Cib not honoured.CPDocument API “firstEligibleExistingWindowController”.CPTextField would not actually put the string value in the Cappuccino pasteboard.- CPView nextValidKeyView infinite loop.CPWindow subclasses breaking flatten.-CPImage initWithContentsOfFile:nil created broken image.CPImageView's _DOMImageElement was not created during initWithCoder.viewDidHide and viewDidUnhide were not called when a view was being added to/removed from hidden ancestor.CPTextField would not become/resign key responder when first responder and unhidden/hidden.setObjectValue.CPTableView.CGContextAddArc would fail if the path was empty.- CPTextField copy: only worked for editable text fields.CPTextField deleteBackward: left 1 character.CPMenuItem could still have a selected background.- CPTextField deleteBackward: required a selection.lineBreakMode set to CPLineBreakByTruncating* was trimming consecutive white spaces.CPTableView.CPComboBox not reacting correctly when its menu scroll bar was clicked.shouldSelectItem in CPOutlineView.shouldSelectTableColumn not called by CPTableView and CPOutlineView.CPByteCountFormatter, a complete implementation of NSByteCountFormatter.CPView identifier property.NSTableCellView nib to plist.CPCheckBox and CPRadio to have themed height and adjusts it correctly.awakeFromNib. Having class specific code in the class makes more sense, and this will make it easier to add more class specific transformations.CPDateFormatter and CPTimeZone support.Bug Fixes:
NSMenu autoEnablesItems was not supported.CPScroller orientation import.CPTabView decoding causing tab selection errors.CPNumberFormatter.CPComboBox enabled state.CPTextField enabled state.Bug Fixes:
The changes above summarise a few hundred of the most important changes in Cappuccino 0.9.7. You can review the other 1000 or so changes in the 0.9.6…0.9.7 compare view.
Release date: 2013-01-20
Everything that was new in RC1 and RC2 and the following:
describe format of CPDictionary and CPArray to be more like literals. E.g. a dictionary is expressed as @{key1: value1}, an array like @[value2, value2], a string like @“CPNumberFormatterPercentStyle in CPNumberFormatter.CPPointInRect. This improves source code compatibility with Cocoa when replacing NS with CP.CPHTTPURLResponse allHeaderFields. When a CPURLConnection response is of the CPHTTPURLResponse type, the raw HTTP headers can now be retrieved through the allHeaderFields message.CPIndexSet indexSetWithIndex:. Without this check, an index set could be initialised with NaN which would later lead to an infinite loop when enumerating the index set. This error makes the error early and explicit.Bug Fixes:
setTimeout(f) did not work for some JS libraries such as PDF.js when running in a Cappuccino context.CPURL was not encoding self.baseURL and self.string.CPTabView optimisation.CPToolbar validation.CPSegmentedButton setEnabled:forSegment:.CPTableView.- CPTableView clickedColumn.CPTableColumn value binding option. With this option an array controller driven table view can be sorted by clicking the table column headers without manually setting up sort descriptor prototypes.CPColor colorUsingColorSpaceName:.+ CPFont systemFontSizeForControlSize:.- CPBox setTitleFont: support.- CPBezierPath appendBezierPathWithArcFromPoint:toPoint:radius: and CGPathAddArcToPoint.CGContextIsPathEmpty for non-canvas based platforms.- CPBezierPath controlPointBounds and CGPathGetBoundingBox.- CPBezierPath addClip and setClip. This enables e.g. a CPGradient to be drawn clipped by an arbitrary bezier path.CPGraphicsContext saveGraphicsState and restoreGraphicsState.CPString but if a date or a number is passed this will now work without a crash.- CPBox titleView.popoverDidShow: timing.CPTokenField token spacing.CPStepper bindings support for CPValueBinding, CPMinValueBinding, CPMaxValueBinding. Placehoders defaults are minValue, minValue, maxValue.CPThemeStateEditable for text fields.CPBrowserStyleProperty for getting browser specific CSS and JS names.Bug Fixes:
CPBox not drawing properly as the box moved.CPStepper graphics.
CPStepper looked larger than the regular stepper due to the outline becoming white.CPScrollView was calculated incorrectly.CPOutlineView delegate that item did collapse after reloading them.CPPredicateEditor.selectionIndexes. CPTableView's selectionIndexes binding shouldn't be set automatically unless the content binding was also set automatically (through a table column binding). Assume that manual content binding implies a desire to manually bind selection indexes (and sort descriptors) as well.CPAlerts above popovers.Error: Permission denied to access property '_childAppIsStarting' in Firefox. This error would occur when running an app in an iframe which could not access its parent frame.- CPWindow contentRectForFrameRect: and frameRectForContentRect: for borderless windows with toolbars.autoresizesSubviews to NO for tab views by default. In Cocoa this doesn't make any difference because NSTabView ignores this setting. This fix makes it so that Cappuccino's tab view also works with autoresizesSubviews off.canBecomeKeyWindow response for auxiliary windows. Without this fix Cappuccino always returned YES for canBecomeKeyWindow for every window. But in Cocoa, only “standard” windows with a title bar and/or resizing return YES. With this fix Cappuccino better matches Cocoa's behaviour.popoverDidShow in Firefox.[CPApp windows] contained nil.CPAlert sheet crash.CPAlert was a CPView.CPSegmentedControl not reducing its size when removing segments.- CPWindow setInitialFirstResponder now works reliably and follows Cocoa behavior in that if -makeFirstResponder is called with something other than the window before the window is first shown, it will override the initial first responder.- CPWindow autorecalculatesKeyViewLoop now behaves per Cocoa, it only has an effect when views are added or removed.CPTextField will no longer lose focus unnecessarily.- CPWindow canBecomeKeyWindow and -canBecomeMainWindow to match Cocoa behavior (and misleading documentation).CPButton. For examples CPPopUpButton can get another height then CPButton.Bug Fixes:
NSStepper to CPStepper.CPColorWell, CPComboBox, CPPopUpButton and CPSegmentedControl.nib2cib support for NSMatrix based radio groups. Without this fix, a matrix with a target-action pair would crash when the cib was loaded due to the matrix having been replaced with a CPView (which cannot take a target-action pair). Now if the matrix is for radio buttons, the action connection for the matrix is made to the CPRadioGroup instead and works as expected when radio selections are made.CAPP_NOSUDO=1.--quiet and --verbose bootstrap.sh options.Bug Fixes:
jake test runs.d1c9786, acd98b5, d0fa16b, 63bad1d, bf3a152, 48e797a, e4a6d85, 2f428fa, 2e7afc3, df28a46, ad5b9b6, a7b40a5, d4b0e2a, 117d946, c8a37b4, 02a885e, 59ad849, 8a59235, 90d52a8, 95246d7, d718c29, ce167cf, 1edcc51, e46cd14, c2da96e, b629b88, 084e0a3, a973be2, 6c265fe, c896101, 8a39561, 6bc8ad0, 632e226, 2236e7d, 9d4e816, da01d3a, 282e966, 2611e86, f5bb8ab, 947b116, 8ec1325, e2f19c3, 7b2464a, 1ebdd8e, d82da5d, a202cfb, 2a11bdb, 9705f1f, 787dd10, dcdcd8e, 0d31f79, d072f17, 3e65178, f1a171a, 002c49b, 964f3fe, 45ad537, a9be167, c81b8fb, 32eafb7, 50031db, 19f668f, 6284f29, 40ab25d, 29fe631, 295eedc, 110bd20, 1f8306d, 6e3f822, 18f8294, 71f502a, 23817a0, 95511b5, 7fdc3ab, 0e82504, 4021eae, 7de4fe7, c9434ec, 2b1b1ea, 848c893, af2e034
Release date: 2012-08-22
CFURL.createCopyDeletingLastPathComponent.CPURL URLByDeletingLastPathComponent.CFData.bytes() and CFData.base64().CPData +dataWithBytes and CPData +dataWithBase64:.CPString pathWithComponents:, stringByAppendingPathComponent:, and stringByAppendingPathExtension:.CPArray and CPDictionary descriptions now attempt to describe JavaScript member objects in more detail than just [Object object].CPMutableArray sortUsingDescriptors: optimised.CPArray, CPString.CPArray indexesOfObjectPassingTest:.CPIndexSet indexPassingTest:, indexesPassingTest:, indexWithOptions:passingTest:, indexesWithOptions:passingTest:, indexInRange:options:passingTest: and indexesInRange:options:passingTest:.CPGeometry using CGGeometry since they are equivalent in Objective-J.CPDictionary keysOfEntriesPassingTest:, keysOfEntriesWithOptions:passingTest: and keysSortedByValueUsingComparator:.CPDictionary enumerateKeysAndObjectsUsingBlock:.CGInsetMakeInvertedCopy.CPUndoManager posts CPUndoManagerDidCloseUndoGroupNotification.CFData base64 encoding optimised.CPNumberFormatter setMinimumFractionDigits: support.CPNumberFormatter currency style.CPNumberFormatter generatesDecimalNumbers support, enabled by default.Bug Fixes:
CPURLRequest created without using the designated initialiser wouldn't work.JAVA_OPTS support when running Cappuccino utilities through rhino. This generally improves configurability for special cases, and specifically enables a work around for the failed to map segment from shared object error on some platforms.CPDecimalNumber result for 220000/220. In general divisions where the quotient had fewer digits than the dividend when disregarding exponent would fail.LOG global function.CPString path methods should collect // into /./ when running in CommonJS.CPDateReferenceDate should be 'Jan 1 2001' instead of 'Feb 1 2001'CPDate distantPast and distantFuture with Cocoa.CPCopyRange function.willChange… / didChange….CPNumberFormatter grouping was wrong.CPNumberFormatter grouping separator support. perMillSymbol was incorrectly used as the grouping separator.CPSet used identity checks, not Objective-J equality checks.CPArray should throw an exception when observer is added/removed.CPSet removeObject: for an object not a member is not an error.CPNumberFormatter to operate on most CPNumber types. This only worked by accident before.CPNumberFormatter maximumFractionalDigits default.CPNumberFormatter maximum fraction digits property name.CPNumberFormatter CPCoding support and fix rounding default.CPDecimal would not accept strings such as '.003' or '-.003' (no integer component).CPPredicateEditor improvements. Bindings compatibility.+ (BOOL)automaticallyNotifiesObserversOf<Key> support.showRelativeToRect: is called while a popover is closing, it is ignored.showRelativeToRect: is called when the popover is already open the existing popover is repositioned.CGInsetUnion and CGInsetDifference.CPImageView CPValueURLBinding and CPValuePathBinding read-only support.CPImageView CPImageScaleProportionallyUpOrDown.CPSplitView adjustSubviews.CPView tooltips.CPWindow sheet delegate messages.CPImage -initWithData:.CPImageView support for CPDataBinding.CPTableView themed attribute for round rect selection of rows. Selections in the tableview can now have round corners. The default is a regular rect.CPTableView content binding (especially useful for Lion style view-based tables.)CPImage data. If the image was not initialised using data but the browser supports canvas, data is generated.CPToolbarDisplayModeIconOnly support.CPTableView you always wanted in your toolbar.CPTokenField delegate method tokenField:representedObjectForEditingString:. This improves support for represented objects and is used both when an autocompletion suggestion is used or when the name of a token is typed in by hand.textDidChange: which better meets the expectations of Cappuccino programmers. Eliminated custom non-Cappuccino key press handler.CPTokenField keyUp: support.CPTextField superclass and subclassing support by properly using interpretKeyEvents: like CPTextField.defaultCompletionDelay.insertText: to be somewhat overridden. If insertText: is overridden to do nothing, nothing in inserted.CPArrayController removeObjectAtArrangedObjectIndex:.CPTokenField.CPButton types, highlightsBy and showsStateBy support, including for subclasses (CPCheckBox and CPRadio) when appropriate. All button types now supported:
CPPushOnPushOffButtonCPToggleButtonCPMomentaryChangeButtonCPOnOffButtonCPMomentaryPushInButtonCPMomentaryPushButtonCPMomentaryLightCPPopUpButton bindings support.CPToolbar autovalidate support.CPSplitViewWillResizeSubviewsNotification notification userInfo now contains the divider index.CPComboBox.CPTextField and all subclasses, and improved drawing of disabled contents.CPColorWell with Aristo look. Highlighted and disabled visuals.CPColorWell's mouse handling and highlighting. Switch to setNeedsLayout based drawing.CGRectInsetByInset.nib2cib.) There is no need to recompile if the system font is changed in Info.plist.CPControl now archives its formatter. This allows you to use a formatter with a table column's data view.CPFontManager setSelectedFont:isMultiple: and other basic properties.CPFontManager convertFont:, convertFont:toHaveTrait: and addFontTrait:.CPFontManager weightOfFont: and traitsOfFont:.CPFontManager convertFont:toFace:.CPTableView column moves through CPTableViewColumnDidMoveNotification and the delegate.+CPEvent modifierFlags.CPEvent description.CPViewController isViewLoaded.CPTokenField, CPView, CPTableColumn and CPWindow documentation.Bug Fixes:
CPRuleEditor was not compatible with Internet Explorer 7, 8 or 9.CPRuleEditor would not scroll properly in a scroll view as more rules were added.CPTabView item selection could not be fully disabled through the delegate.CPPopUpButton then dragging to an item and releasing the mouse button did not select the item.CPMenu would not close after certain mouse interactions.CPPopover close consulted the delegate's popoverShouldClose.@min, @max and @sum operators.valueForUndefinedKey: value properly for KVC.CPSet valueForKeyPath: returned incorrect results in some cases.CPTextField did not send CPControlTextDidEndEditingNotification if editing had not started, contrary to Cocoa.CPTextField insertion point when text field becomes the first responder.CPTextField cursor to jump to the end after every character typed when continuouslyUpdatesValue was on.CPEvent timeStamp did not return seconds since startup.CPScroller decoding bugs which would lead to errors such as CPInvalidArgumentException: CPScroller does not contain theme attribute 'scroller-width'.CPEvents from periodic events.CPInvalidArgumentException: - [_CPMenuBarWindow scrollByDelta:] unrecognized selector sent to instance when attempting to scroll in a menu.CPPredicateEditor Display value must be… exception in recent revisions.CPOutlineView setMenu: was not effective.orderOut: message, unlike Cocoa.CPProgressIndicator encoder wasted space and caused errors. The errors would cause exceptions such as Not allowed to load local resource: file:///<some local path from the machine that ran nib2cib> when loading cib driven app through a web server.CPPopover typo (setBehaviour: -> setBehavior:).CPTextField delegate method control:didFailToFormatString:errorDescription: did not actually send a string.CPTableView bug where dragged rows didn't have their bindings applied.CPPopover closes implicitly, popoverShouldClose delegate method should be checked.CGSizeFromString and CGPointFromString would try to parse only integer values.CPDocumentController instantiation.window.status access when not running in the browser by CPApplication.CPOutlineView disclosure control width was hardcoded.CPMenu highlights wouldn't always disappear.CPTableView selectedColumn.CPButton's “dim image when disabled” should be on by default.CPTokenField autocomplete scrolling.CPTokenField autocomplete menu could show up underneath other windows.CPTokenField keyDown: handling. Previous nonstand implementation interacted poorly with Cappuccino's event handling and subclasses.CPTokenField object value for half finished tokens. Try to convert to a representedObject before responding to objectValue.CPTokenField nil representedObjectForEditingString: handling. If tokenField: representedObjectForEditingString: returns nil, act the same as if the delegate method didn't exist.CPTokenField token layout when tokens are selected.CPTokenField was active.CPToolbar delegate method toolbarDefaultItemIdentifiers: is optional. This fix makes it possible for a cib-defined toolbar to have a delegate set without defining toolbarDefaultItemIdentifiers:. You might be implementing other delegate methods.CPPredicateEditor CPTextField action bug.viewDidLoad.CPWindowController setViewControllerContainerView: and fix CPWindowController setViewControllerView:.CPColorWell bordered state. This is more consistent with the rest of Cappuccino and prepares for theming support.CPColorPanel errors.CPGeometry moved to Foundation.CPRuleEditor fixes regarding format strings and regexes.[CPPlatformWindow _willPropagateCurrentDOMEvent] unrecognized selector sent to instance error if an event was sent in a non DOM environment.CPTableView.CPArrayController driven table could show an empty selection after removeObject:.CPPopUpButton item. When the selected item of a CPPopUpButton is removed the first item should become selected.CPCib instantiateCibWithOwner:topLevelObjects: did not allow a nil owner.CPTextField in some browsers, especially Firefox and newer versions of Chrome.CPCib initWithContentsOfURL: returns nil if the requested data is nil.CPTokenFields would sometimes unexpectedly steal first responder status. If an autocomplete choice was made followed by immediately focusing on another control, the token field would reclaim first responder status a moment later.CPTokenField scrolling away from selected token. Sometimes clicking a token would cause the token field to scroll to some other spot.CPEvent data1 and data2 weren't stored right. They were stored in globals instead of ivars, allowing only one data1 or data2 in the whole app.CPArrayController wrong indexes would become selected when removing arranged objects.CPWindowController setViewController: was incorrectly causing view loading.@font-face syntax, Cappuccino would calculate the wrong sizes for strings throughout.CPControl formatter to format nil.CPDateFormatter (although actual formatting not yet implemented in Cappuccino.)CPProgressIndicator size.NSCell, useful for radio groups.Bug Fixes:
NSButton now allows buttons that are not fixed height, if the theme allows it.imageDimsWhenDisabled default.CPTableView.NSClipView obey the Draw Background checkbox in IBcapp ThemeDescriptor template with better tasks, documentation and structure.dump_theme tool to inspect themes.capp_lint added to Tools.narwhaljs.org in bootstrap.sh - it doesn't exist anymore.xcode-select in bootstrap.sh.capp_lint check for space inside parens and dependent statement on same lineBug Fixes:
objcc --includeTypeSignatures typo.Release date: 2012-04-26
CPNotificationCenter removeObserver:.isEqual: support for CPExpression and CPPredicate subclasses.CPObject performSelector:withObject:.CPSet and CPMutableSet.objcc -T (or --includeTypeSignatures) option which activates the IncludeTypeSignatures option.CFPropertyList support for date decoding.CPIndexSet enumerateIndexesUsingBlock:, enumerateIndexesWithOptions:usingBlock: and enumerateIndexesInRange:options:usingBlock:.CPIndexSet optimisations.CPArray enumerateObjectsWithOptions:usingBlock:.Bug Fixes:
TypeError: framework is not a function, it is undefined when compiling Objective-J on Linux.Error: Could not load file at Foundation/Foundation.j when compiling Aristo on Linux.CPNotificatioNCenter notifications were sent to removed observers. If one observer of a notification centre notification removed another observer, that other observer would still be notified even that it was no longer observing.pngcrush.CFPropertyList.propertyListFromXML did not properly decode base64 encoded data values.CPKeyedUnarchiver decodeBytesForKey:.CPPopUpButton.CPBox.shouldAdjustSizeOfSubview: delegate method.CPSplitView resizing which plays well with a mix of fixed size and non-fixed size panes.CPCollectionView optimisations.CPCollectionView.CPWorkspace openFile: and openURL:.CPToolbar sizeMode).CPSplitView and CPScrollView.autorecalculatesKeyViewLoop is NO.CPColor components to [0.0, 1.0].CPColor colorWithSRGBRed:green:blue:alpha:.CPColorSpace (basic).CPGradient with drawInRect:angle:.CPView inLiveResize.CPGraphicsContext isFlipped.CPColorWell bindings support.CPOutlineView delegate method outlineView:shouldShowOutlineDisclosureControlForItem: (corresponding to shouldShowOutlineCellForItem: in Cocoa).appkit_tag_dom_elements debug option adds a data-cappuccino-view attribute to most Cappuccino controls, making it easier to troubleshoot in a browser based document inspector.CPSet sortedArrayUsingDescriptors:.CPView registerThemeValues: to change view theme attributes at runtime in a manner similar to ThemeDescriptors.j.CPPopover animation tweaks and improvements.CPOutlineView item parent with left arrow key.CPOutlineView selectionShouldChangeInOutlineView: delegate method.Bug Fixes:
CPBrowser did not notify its delegate of new selections if the selection was made using the keyboard.colorWithCSSString: crash. Syntax such as [[CPColor colorWithCSSString:@"rgba(0,0,0,0.5)"] cssString] lead to a CSS string incompatible with browsers without the CSS rgba feature.CPArray filteredArrayUsingPredicate: and CPArray filterUsingPredicate: did not work for certain types of arrays, and could potentially cause erroneous results for CPArrayControllers with filter predicates.CPShadowView shadowViewEnclosingView: on a subclass of CPShadowView would return an instance of the superclass.CPTabView selectedTabViewItem would raise an exception when there were no tab items instead of nil.CPTabView would not properly reflect changed views if the view changed while the tab was not selected.CPSplitView tried to auto save even without an auto save name.+ CPFont boldFontWithName:size:italic: sometimes returned a non-bold, non-italic font.CPCompoundPredicate of CPNotPredicateType error.+ CPFont fontWithName:size:italic: sometimes returned a non-italic font even for italic:YES.CPTableColumn decoded and set its header view twice.CPArrayController avoidsEmptySelection incorrectly was applied when setting an empty selection through code.CPCollectionView setSelectionIndexes:nil would freeze the app.CPCollectionView with no item prototype view from a cib.CPWindow setAutorecalculatesKeyViewLoop:NO caused the window to recalculate the key view loop.[CPString count] unrecognized selector error when binding an array controller's content array to a key of another AC's selection.CPWindow autorecalculatesKeyViewLoop now defaults to NO rather than null.CPOutlineView disclosure triangle.CPViewController view loading behaviour tweaks.CPViewController initWithCibNamed:bundle: ignored the bundle argument.CPPopover created a new window every time it opened, leaking memory in the process.CPPopover delegate method popoverDidClose could be called before animation finished.CPPopUpButton exposed an unintended selectedTag method.CPStepper support.CPTableView background colour support.Bug Fixes:
CPTabViews could not be converted.NSToolbarShowColorsItem didn't convert right.CPBox title position 'none' was converted to 'on top'.CPWindow autorecalculatesKeyViewLoop.Release date: 2011-11-16
The final release of Cappuccino 0.9.5 is identical to RC5.
Release date: 2011-11-16
Release date: 2011-11-16
CPTokenField: quickly entered tokens would be ignored.CPTokenField: crash if added to a window in a unit test.CPTokenField, deleting tokens in front of selected tokens would shift the selection to the right.CPTokenField selection is initialised when loading from cib.Release date: 2011-11-11
CPScanner fixes.objj_backtrace_decorator.CPString -substringWithRange: and -rangeOfString:options:range now throws CPRangeException for out of bounds ranges.-forwardingTargetForSelector: support.CPNumberFormatter with CPNumberFormatterDecimalStyle support.CPDictionary's +dictionaryWithJSObject:recursively: (issue #1299).@STATIC tags, suitable for JavaScript linters.[CPString copy].Bug Fixes:
CPURL -isEqual: for URLs with redundant slashes.CPDate timezone calculation in initWithString:.CPString -rangeOfString: backwards search did not work.CPString -rangeOfString: anchored backwards search did not work.CPString -rangeOfString: returned results other than CPNotFound.CPString -rangeOfString:options:range returned locations relative to the passed-in range instead of the full string.CPMutableSet -addObject: should raise with nil or undefined.-description method into a string.CPDecimal: decimal numbers below 1.0 would compare incorrectly with 0.0.CPButton continuous mode.CPSound error handling and better Cocoa compliance.CPProgressIndicator is now coding compliant.CGContext (CGContextSetFillColor with a pattern color).CPWebView -isLoading method.CPObjectController automaticallyPreparesContent support.CPNullPlaceholderBindingOption for bound text fields.CPContinuouslyUpdatesValueBindingOption.CPOutlineView outlineViewDeleteKeyPressed: delegate method.CPEvents sent during mouseDragged: now have deltaX and deltaY appropriately set (issues #1210, #1211).CPIndexPath.CPMenu item validation.collectionView:menuForItemAtIndex: delegate method support.CPDictionary -keysSortedByValueUsingSelector: which, just as it sounds, returns the keys of the dictionary sorted using a given selector.CPMenu -removeAll method (issue #1260).CPPredicateEditor allows a search or filter predicate to be constructed visually by the user.addObject: by eliminating entirely pointless rearrange when added objects did not pass the filter. Also avoid double rearrange if clearsFilterPredicateOnInsertion.CPUserDefaultsController which can be used to easily bind controls to user default keys, in Interface Builder or elsewhere.CPArrayController insertObject:atArrangedObjectIndex:.filterPredicate change notification if clearsFilterPredicateOnInsertion is YES but filterPredicate is already nil when insertObject:atArrangedObjectIndex: is called.CPArrayController handlesContentAsCompoundValue support for contentArray binding.CPOutlineView.CPLevelIndicator shows a meter with discrete levels from empty to full.CPFormatter support for CPControl.scrollViewWillScroll: and scrollViewDidScroll: delegate methods, inspired by UIScrollViewDelegate (issue #1177).CPMenu opening, closing and handling of submenus.CPCharacterSet when the set is of the characterSetWithCharactersInString kind.CPCharacterSet -isEqual: support when the set is of the characterSetWithCharactersInString kind.CPCharacterSet +characterSetWithCharactersInString now archive properly.CPTokenField.CPArray range checking (issue #1334).CPBoxes created with +boxEnclosingView: now take on the autoresizing mask of the passed view (issue #1335).usesAlternatingBackgroundColors is YES (issue #1341).CPAlert subclasses to use +alertWithMessageText:... et al (issue #1333).valueForKeyPath: (issue #1344).[CPSound play] now plays the sound once it has been loaded if it hasn't yet (issue #1345).CPRangeException if CPString substringToIndex: is out of bounds.willChange<Key> and didChange<Key> calls. When multiple calls are nested, only the first willChange... and the last didChange... will notify observers, avoiding duplicate notifications for the same change. This can massively improve performance since observations sometimes lead to cascading updates (issue #1343).didChange in reverse order of willChange in CPObjectController setContent:.CPTokenField tokenField:shouldAddObjects:atIndex: delegate method (issue #1360).CPStepper button sizes can now be themed.CPColorWithImages() convenience function to quickly create a CPColor from single, 3-part or 9-part images (issue #1274).-description method of CPImage and CPColor to show the exact content, especially for pattern colors (issue #1274).splitViewDidResizeSubviews: messages.CPWindow setMovable: support which specifies whether a window can be dragged (issue #1358).CPPopover control to create small “pop up” widgets attached to other controls, similar to the Downloads pop-over in Safari 5 (issue #1316).Bug Fixes:
CPViewAnimation: all animation curves behaved like a linear curve (issue #1313).CPSound in Firefox.CPFlashView setParameters: bugs.CPSearchField layout glitch.CPSplitView setIsPaneSplitter: had the opposite effect of what it should have been.CPTextField: cut and paste using the mouse did not set stringValue properly.CPTextField: CPControlTextDidBeginEditingNotification and CPControlTextDidChangeNotification were not sent after cut and paste.CPTableView column resizing.CPOutLineView outlineView:sortDescriptorsDidChange: delegate message was not sent.addObserver: when one replacement would do.CPBrowser.setScrollMode: message did nothing.[CPArrayController arrangedObjects] could be nil.CPSearchField delegate method controlTextDidChange: didn't always get fired.CPSearchField.unarchiver:didDecodeObject: returned nil, the original object was still replaced (with nil) instead of being kept.webView:didFinishLoadForFrame: delegate message.CPSlider isContinuous disagreed with setContinuous:.CPSliders always became continuous when archived/unarchived.nextKeyView is self.rectOfColumn: method returned a rect reduced by the intercell spacing. It should return the rect of the entire column.contentArray would sometimes fail when add:, remove: and similar methods were called.CPColor colorWithCSSString: did not properly handle the alpha component of the CSS rbga() syntax.CPInvalidArgumentException: Unsupported method on CPArray when attempting to bind to a CPArrayController's arrangedObjects before calling setContent:.CPArrayController _arrangedObjects initialisation error.CPOutlineView provided dragged items in reverse order.CPBox would have the wrong autoresizing mask.CPTextField's custom inset would decode fine, but a subclass of a CPTextField would fail to decode the inset.CGGradientCreateWithColorComponents assumed there'd only be two colors in each gradient.CGColorCreateGenericGray, CGColorCreateGenericRGB and CGColorCreateGenericCMYK.CGColorCreateCopyWithAlpha could create colors with an alpha value incorrectly linked to other cached colors.CPPopUpButton itemWithTitle:.[CPIndexSet indexPathByRemovingLastIndex] didn't remove the last index.[CPIndexSet indexes] did not return a copy of the indexes._CPImageAndTextViews sharing the same CPImage failed to properly observe its loading.CPWebView.CPColor isEqual: sometimes failed to recognise equal instances specified with colorWithCSSString:.CPColor isEqual: for pattern images.addObject: (on arrangedObjects).CPTableColumn width, minWidth and maxWidth encoding.CPController initWithCoder:.CPUserDefault change notifications, objectForKey: could return the value from prior to the change.remove: would not only remove selected rows, but also any other rows isEqual: to the selected rows.CPMenu could return a separator as the highligted item.CPTextField's target action changed the first responder then the target action was called twice if the textfield edit was completed by hitting the enter/return key.CPPredicate would crash if a beginsWith or endsWith comparison was made where the right hand string was longer than the left hand string.setEnabled: for auto enabled items.tokenField:tokenField completionsForSubstring:indexOfToken:indexOfSelectedItem: ignored its indexOfToken: parameter.CPArrayController setSelectionIndexes: sometimes modified its input.CPArrayController methods returned undefined instead of booleans.CPWindow did not return NO to acceptsFirstResponder messages.selectNextKeyView:, selectPreviousKeyView:, selectKeyViewFollowingView: and selectKeyViewPrecedingView: not acting like in Cocoa).mutableArrayValueForKey: KVO proxy objects did not use plural selectors (e.g. remove<Key>AtIndexes:, replace<Key>AtIndexes:) when implemented by the proxied object.CPStepper setFrame: method modified its input.CPRadio sent its action after a programmatic setState: change.CPTextField: if a field lost focus while a key was depressed the string value would not update with the last pressed key.CPMenu -removeAllItems was not KVO compliant.CPPopupButton -selectedIndex could become wrong when menu items were removed.CPProgressIndicator support.sendsActionOnEndEditing flag.NSButtonCell (e.g. checkboxes) in table columns.NSAddTemplate and NSRemoveTemplate (standard plus and minus buttons).Bug Fixes:
Result of expression '_subviews[index]' [null] is not an object error for nib2cibbed radio groups.NSColorWell was not read properly.capp --help.capp.https://github.com/cappuccino/cappuccino.NARWHAL_ENGINE to jsc if it's already jsc.