]> git.saurik.com Git - veency.git/commitdiff
Do not directly link against @class UIApplication.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 5 Apr 2013 23:17:29 +0000 (23:17 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 5 Apr 2013 23:17:29 +0000 (23:17 +0000)
Tweak.mm

index dcc13229e2757412cc120ac1a4d8065df8e7bf8c..f18bab58c4eb83a1e0ead93591fd8644084633bf 100644 (file)
--- a/Tweak.mm
+++ b/Tweak.mm
@@ -51,6 +51,8 @@
 
 #include "SpringBoardAccess.h"
 
+MSClassHook(UIApplication)
+
 extern "C" void CoreSurfaceBufferFlushProcessorCaches(CoreSurfaceBufferRef buffer);
 
 static size_t width_;
@@ -216,7 +218,7 @@ static void OnUserNotification(CFUserNotificationRef notification, CFOptionFlags
         SBA_removeStatusBarImage(const_cast<char *>("Veency"));
     else if ($SBStatusBarController != nil)
         [[$SBStatusBarController sharedStatusBarController] removeStatusBarItem:@"Veency"];
-    else if (UIApplication *app = [UIApplication sharedApplication])
+    else if (UIApplication *app = [$UIApplication sharedApplication])
         [app removeStatusBarImageNamed:@"Veency"];
 }
 
@@ -237,7 +239,7 @@ static void OnUserNotification(CFUserNotificationRef notification, CFOptionFlags
         SBA_addStatusBarImage(const_cast<char *>("Veency"));
     else if ($SBStatusBarController != nil)
         [[$SBStatusBarController sharedStatusBarController] addStatusBarItem:@"Veency"];
-    else if (UIApplication *app = [UIApplication sharedApplication])
+    else if (UIApplication *app = [$UIApplication sharedApplication])
         [app addStatusBarImageNamed:@"Veency"];
 }