Skip to content

Instantly share code, notes, and snippets.

@jerodsanto
Created December 19, 2009 18:47
Show Gist options
  • Save jerodsanto/260196 to your computer and use it in GitHub Desktop.
Save jerodsanto/260196 to your computer and use it in GitHub Desktop.
@import <Foundation/CPObject.j>
@implementation AppController : CPObject
{
CPString name;
CPDate date;
int integer;
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
contentView = [theWindow contentView];
var ivarArray = class_copyIvarList(AppController);
for (i = 0; i < ivarArray.length; i++) {
console.log("name = " + ivarArray[i].name + " type = " + ivarArray[i].type);
}
[theWindow orderFront:self];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment