]> git.saurik.com Git - uikittools.git/commitdiff
Use a few more notifications for iOS 6 compatibility.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 19 Sep 2012 17:08:54 +0000 (17:08 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 19 Sep 2012 17:08:54 +0000 (17:08 +0000)
sbdidlaunch.mm

index d242b0305dbdf66124c4cbe87f82cd863ee36043..810ca14609f75571778a3020aeeafa02c74e1dbd 100644 (file)
@@ -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();