Files
cappuccino/Tests/Manual/CPDictionaryControllerTest/AppController.j
T
Blair Duncan 8eb59d97b2 replaced setContest with setContentDictionary in test
enabled "prepairs content" in xib to show key, key1 etc when added
2013-02-18 22:54:42 -05:00

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