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
-
Francisco Tolmasky December 30th, 2008 @ 12:32 PM
This is actually due to us not supporting the comma notation for multiple declarations of the same time. It's surprising that any of them worked.
-
admin (at 280north) January 7th, 2010 @ 08:43 PM
- State changed from new to resolved
- Tag set to @needanswer
(from [fe2599eb351838ebf8a5476059093795aa2cde82]) buttons now momentarily go the the pressed state when clicked programmatically. Closes #187 http://github.com/280north/cappuccino/commit/fe2599eb351838ebf8a547...
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.
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.
People watching this ticket
Tags
Referenced by
- 187 Multiple non Javascript-native instance variable declarations per-line don't work (from [fe2599eb351838ebf8a5476059093795aa2cde82]) buttons...