- (void) applicationDidFinishLaunching:(id)unused;
+- (void) retainNetworkActivityIndicator;
+- (void) releaseNetworkActivityIndicator;
+
@end
#endif//CyteKit_Application_H
#include "iPhonePrivate.h"
#include <Menes/ObjectHandle.h>
-@implementation CyteApplication : UIApplication {
+@implementation CyteApplication {
+ unsigned activity_;
}
- (void) _sendMemoryWarningNotification {
] autorelease]];
}
+- (void) retainNetworkActivityIndicator {
+ if (activity_++ == 0)
+ [self setNetworkActivityIndicatorVisible:YES];
+
+#if TraceLogging
+ NSLog(@"retainNetworkActivityIndicator->%d", activity_);
+#endif
+}
+
+- (void) releaseNetworkActivityIndicator {
+ if (--activity_ == 0)
+ [self setNetworkActivityIndicatorVisible:NO];
+
+#if TraceLogging
+ NSLog(@"releaseNetworkActivityIndicator->%d", activity_);
+#endif
+}
+
@end
_H<NSURL> starturl_;
unsigned locked_;
- unsigned activity_;
_H<StashController> stash_;
[self unlockSuspend];
}
-- (void) retainNetworkActivityIndicator {
- if (activity_++ == 0)
- [self setNetworkActivityIndicatorVisible:YES];
-
-#if TraceLogging
- NSLog(@"retainNetworkActivityIndicator->%d", activity_);
-#endif
-}
-
-- (void) releaseNetworkActivityIndicator {
- if (--activity_ == 0)
- [self setNetworkActivityIndicatorVisible:NO];
-
-#if TraceLogging
- NSLog(@"releaseNetworkActivityIndicator->%d", activity_);
-#endif
-
-}
-
- (void) cancelAndClear:(bool)clear {
@synchronized (self) {
if (clear) {