mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-27 22:17:03 +00:00
- 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.
37 lines
802 B
Plaintext
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
|