Files
cappuccino/Tests/Manual/UserlandNSTest/AppController.j
T
Aparajita Fishman 502edbd152 nib2cib enhancements
- Added support for User Defined Runtime Attributes in IB.
- Added support for userland NS classes in IB.
- Added support for file-based nib2cib configuration.
- Converted nib2cib to Objective-J from straight Javascript.
- Updated man page for new features.
- Test app.
2012-04-12 12:09:24 -04:00

37 lines
802 B
Plaintext

/*
* AppController.j
* UserlandNSTest
*
* Created by aparajita on April 11, 2012.
* Copyright 2012, The Cappuccino Foundation. All rights reserved.
*/
@import <Foundation/CPObject.j>
@import "BorderView.j"
@implementation AppController : CPObject
{
CPWindow theWindow; //this "outlet" is connected automatically by the Cib
@outlet CPTextField field1 @accessors(readonly);
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
}
- (void)awakeFromCib
{
}
- (void)setInitialResponderByTag:(CPInteger)tag
{
CPLog("setInitialFirstResponder:%d", tag);
[theWindow setInitialFirstResponder:[[theWindow contentView] viewWithTag:tag]];
}
- (void)setValue:(id)value forUndefinedKey:(CPString)key
{
CPLog("setValue:" + value + " forKey:" + key);
}
@end