+- (void) dealloc {
+ [_rootController release];
+ [super dealloc];
+}
+
+- (void) applicationWillTerminate:(UIApplication *)application {
+ [_rootController.rootListController suspend];
+}
+
+- (void) applicationDidFinishLaunching:(id)unused {
+ wbSettingsBundle = [NSBundle bundleWithPath:@"/System/Library/PreferenceBundles/WinterBoardSettings.bundle"];
+ [wbSettingsBundle load];
+ $WBSettingsController = [wbSettingsBundle principalClass];
+
+ CGRect applicationFrame(([UIDevice instancesRespondToSelector:@selector(isWildcat)]
+ && [[UIDevice currentDevice] isWildcat]) || objc_getClass("UIStatusBar") != nil
+ ? [UIScreen mainScreen].bounds
+ : [UIScreen mainScreen].applicationFrame);
+ UIWindow *window([[UIWindow alloc] initWithFrame:applicationFrame]);
+ _rootController = [[WBRootController alloc] initWithTitle:@"WinterBoard" identifier:[[NSBundle mainBundle] bundleIdentifier]];
+ [window addSubview:[_rootController contentView]];
+ [window makeKeyAndVisible];