PageRenderTime 45ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/AppController.j

http://github.com/mafis/Coffein
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
  1. /*
  2. * AppController.j
  3. * Coffein
  4. *
  5. * Created by Maximilian Fischer & Felix Stoessel on January 16, 2010.
  6. * Copyright 2010, Your Company All rights reserved.
  7. */
  8. @import <Foundation/CPObject.j>
  9. @implementation AppController : CPObject
  10. {
  11. @outlet CPWindow theWindow; //this "outlet" is connected automatically by the Cib
  12. @outlet CPCollectionView navigationCollection;
  13. @outlet CPCollectionView contentCollection;
  14. }
  15. - (void)applicationDidFinishLaunching:(CPNotification)aNotification
  16. {
  17. CPLogConsole("Test");
  18. // This is called when the application is done loading.
  19. }
  20. - (void)awakeFromCib
  21. {
  22. [navigationCollection setMinItemSize:CGSizeMake(100, 40)];
  23. [navigationCollection setMaxItemSize:CGSizeMake(100, 40)];
  24. [navigationCollection setVerticalMargin:0];
  25. [navigationCollection setBackgroundColor:[CPColor colorWithHexString:@"eee"]];
  26. [navigationCollection setContent:[CPArray arrayWithObjects:"Test","Test"]];
  27. // This is called when the cib is done loading.
  28. // You can implement this method on any object instantiated from a Cib.
  29. // It's a useful hook for setting up current UI values, and other things.
  30. }
  31. @end