up

Cappuccino News 2014 December 1st

Here’s a quick update on what’s new with Cappuccino for the last two weeks.

Cappuccino

New features
  • The keyword @typedef has 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.

  • The method addObserverName:object:queue:usingBlock: has been added to CPNotificationCenter. (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 CPTextField even if a control size is set. (t00f - PR)

  • Fixed: when a CPTextField was used to edit multiple rows through an CPArrayController (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 Jakefile template, 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 CPMenu with items and then opening a CPMenu without any items would cause a crash. (Dogild - PR)

RSS
Posted by Alexandre Wilhelm
on Dec 01, 2014.
comments powered by Disqus