Files
David Richardson 4784a1a102 Normalize application naming in ./Tests/Manual
Ensure:
* CamelCase, ending in Test
* No hyphens, spaces, underscores or other non-alpha characters

Updated application directory names.
Update Jakefiles.
2026-09-08 17:47:30 -06:00

44 lines
1.2 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* AppController.j
* CPTimeZone
*
* Created by You on April 16, 2013.
* Copyright 2013, Your Company All rights reserved.
*/
@import <Foundation/Foundation.j>
@import <AppKit/AppKit.j>
@implementation AppController : CPObject
{
@outlet CPWindow theWindow;
@outlet CPDatePicker datePicker;
@outlet CPPopUpButton popUpButton;
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
// This is called when the application is done loading.
}
- (void)awakeFromCib
{
// 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.
// In this case, we want the window from Cib to become our full browser window
[theWindow setFullPlatformWindow:YES];
[datePicker setDateValue:[CPDate date]];
[popUpButton addItemsWithTitles:[CPTimeZone knownTimeZoneNames]];
[datePicker setTimeZone:[CPTimeZone timeZoneWithName:[[CPTimeZone knownTimeZoneNames] firstObject]]];
}
- (@action)changedTimeZone:(id)sender
{
[datePicker setTimeZone:[CPTimeZone timeZoneWithName:[[CPTimeZone knownTimeZoneNames] objectAtIndex:[sender selectedIndex]]]];
}
@end