#187 ✓resolved
Tim Henrion

Multiple non Javascript-native instance variable declarations per-line don't work

Reported by Tim Henrion | December 30th, 2008 @ 07:49 AM

Cappuccino appears to have a problem with having instance variables declared in a class where the type is non Javascriopt-native and you specify multiple variable declarations per line. For example:


@implementation NavigationBar : CPView
{
    int _type, _fieldPadding;
    id  _backButton, _forwardButton;
}
.
.
.

will result in a 'backButton not defined' error the first time backButton is referenced at runtime. There are no problems accessing either type or fieldPadding, which are int's. It also doesn't appear to matter whether the offending variables are declared as 'id's or some other non Javascript-native type.

Changing this to:


@implementation NavigationBar : CPView
{
    int _type, _fieldPadding;
    id  _backButton;
    id _forwardButton;
}
.
.
.

alleviates the problem.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins

People watching this ticket

Referenced by

Pages