Here’s a quick update on what’s new with Cappuccino for the last two weeks.
Cappuccino
New features
- The keyword
@typedefhas been added to Objective-J. This keyword allows you to define new types for your application. (primalmotion - PR)
Example:
@import <Foundation/Foundation.j>
@typedef NUSuppaType
@implementation NUMyClass: CPObject
{
NUSuppaType mode;
}
@end
The Objective-J compiler will not raise a warning for the type NUSuppaType anymore.
- New multi-line support for
CPTextField. (primalmotion - PR)
- The method
addObserverName:object:queue:usingBlock:has been added toCPNotificationCenter. (Dogild - PR)
Example:
var center = [CPNotificationCenter defaultCenter],
observer = [center addObserverForName:TestNotification
object:anObject
queue:nil
usingBlock:function(notification)
{
notificationCount += 1;
}];
Changes/Fixes
Fixed: the URL of the current release version of Cappuccino was wrong in the documentation. (zittix - PR)
You can now set a specific height for a
CPTextFieldeven if a control size is set. (t00f - PR)Fixed: when a
CPTextFieldwas used to edit multiple rows through anCPArrayController(and the multiple selection placeholder would show), tabbing through the field would clear the bound value in the rows even though no edit was made. (daboe01 - PR)Fixed: in the
Jakefiletemplate, the configuration build environment parameter could have multiple values. Now this variable is correctly set by detecting the build environment. (ahankinson - PR)It’s now possible to chain sheet dialogs in a
CPWindow. (Dogild - PR)Fixed: opening a
CPMenuwith items and then opening aCPMenuwithout any items would cause a crash. (Dogild - PR)
