/AppController.j
Unknown | 38 lines | 31 code | 7 blank | 0 comment | 0 complexity | f19524d4b2beb3ff48286847846d2e2d MD5 | raw file
Possible License(s): LGPL-2.1, CC-BY-3.0
- /*
- * AppController.j
- * Coffein
- *
- * Created by Maximilian Fischer & Felix Stoessel on January 16, 2010.
- * Copyright 2010, Your Company All rights reserved.
- */
- @import <Foundation/CPObject.j>
- @implementation AppController : CPObject
- {
- @outlet CPWindow theWindow; //this "outlet" is connected automatically by the Cib
- @outlet CPCollectionView navigationCollection;
- @outlet CPCollectionView contentCollection;
- }
- - (void)applicationDidFinishLaunching:(CPNotification)aNotification
- {
- CPLogConsole("Test");
- // This is called when the application is done loading.
- }
- - (void)awakeFromCib
- {
- [navigationCollection setMinItemSize:CGSizeMake(100, 40)];
- [navigationCollection setMaxItemSize:CGSizeMake(100, 40)];
- [navigationCollection setVerticalMargin:0];
- [navigationCollection setBackgroundColor:[CPColor colorWithHexString:@"eee"]];
- [navigationCollection setContent:[CPArray arrayWithObjects:"Test","Test"]];
- // This is called when the cib is done loading.
- // You can implement this method on any object instantiated from a Cib.
- // It's a useful hook for setting up current UI values, and other things.
- }
- @end