mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-26 13:37:03 +00:00
37 lines
975 B
Plaintext
37 lines
975 B
Plaintext
/*
|
|
* AppController.j
|
|
* CPDictionaryControllerTest
|
|
*
|
|
* Created by Blair Duncan on February 17, 2013.
|
|
* Copyright 2013, SGL Studio, BBDO Toronto All rights reserved.
|
|
*/
|
|
|
|
@import <Foundation/CPObject.j>
|
|
@import <AppKit/CPDictionaryController.j>
|
|
|
|
|
|
@implementation AppController : CPObject
|
|
{
|
|
CPDictionaryController dictionaryController @accessors;
|
|
CPTableView tableView @accessors;
|
|
}
|
|
|
|
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
|
|
{
|
|
// This is called when the application is done loading.
|
|
}
|
|
|
|
- (void)awakeFromCib
|
|
{
|
|
var dictionary = [CPDictionary dictionaryWithObjectsAndKeys:
|
|
@"867-5309", @"Phone Number", // Phone Number is in the Excluded List in the Xib
|
|
@"Blair", @"First Name",
|
|
@"Duncan", @"Last Name",
|
|
@"Toronto", @"City"];
|
|
[dictionaryController setContentDictionary:dictionary];
|
|
[tableView reloadData];
|
|
}
|
|
|
|
|
|
@end
|