Just some suggestions for app controller messages, it is written lasily in pseudo code, my objective-c is pretty weak at the moment.
AppController.m /*These methods are called if the system battery is low on laptops, or the power has failed and a UPS has kicked in. */ //This method tells the notification center that the program wishes to be notified about power events [NSNotificationCenter RegisterForPMNotifications With:Self] //Called if power is being drawn from UPS //or if the laptop battery has less time than is defined in NSDefaults Global Domain MayLosePowerThreshold. -(void) SystemMayLosePower() //Called if all UPSs are deemed near dead //or if the system has requested time to preform safe power loss -(void) SystemWillLosePower() -- View this message in context: http://old.nabble.com/Application-Controller--Notifications-For-Power-Managment-tp32417946p32417946.html Sent from the GNUstep - General mailing list archive at Nabble.com. _______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
