From: Jay Freeman (saurik) Date: Wed, 19 Sep 2012 17:08:54 +0000 (+0000) Subject: Use a few more notifications for iOS 6 compatibility. X-Git-Tag: v1.1.4~1 X-Git-Url: https://git.saurik.com/uikittools.git/commitdiff_plain/0569ac5201a69994e216a580b0690bde5b202dd4 Use a few more notifications for iOS 6 compatibility. --- diff --git a/sbdidlaunch.mm b/sbdidlaunch.mm index d242b03..810ca14 100644 --- a/sbdidlaunch.mm +++ b/sbdidlaunch.mm @@ -61,6 +61,24 @@ int main() { NULL ); + CFNotificationCenterAddObserver( + CFNotificationCenterGetDarwinNotifyCenter(), + NULL, + &OnDidLaunch, + CFSTR("com.apple.springboard.finishedstartup"), + NULL, + NULL + ); + + CFNotificationCenterAddObserver( + CFNotificationCenterGetDarwinNotifyCenter(), + NULL, + &OnDidLaunch, + CFSTR("com.apple.springboard.bootedcleanly"), + NULL, + NULL + ); + if (SBSSpringBoardServerPort() == NULL) CFRunLoopRun();