/* * AppController.j * CPProgressIndicator * * Created by Alexander Ljungberg on May 3, 2012. * Copyright 2012, SlevenBits Ltd. All rights reserved. */ @import @implementation AppController : CPObject { CPWindow theWindow; //this "outlet" is connected automatically by the Cib @outlet CPProgressIndicator fiftyPercentBar @accessors; @outlet CPProgressIndicator hundredPercentBar @accessors; } - (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. // Interface Builder does not encode the current progress. [fiftyPercentBar setDoubleValue:50]; [hundredPercentBar setDoubleValue:100]; [theWindow center]; } @end