BeamOff是一款专为提升MAC系统性能而设计的优化软件。它提供了一系列强大的功能,帮助用户清理无用文件、加速启动速度并释放磁盘空间,从而让Mac设备运行更流畅。
//// AppDelegate.m// beamoff//// Created by ANDREI VAYAVODA on 09.11.14.// Copyright (c) 2014 ANDREI VAYAVODA. All rights reserved.
#import AppDelegate.h
extern void CGSSetDebugOptions(int);
extern void CGSDeferredUpdates(int);
typedef enum {
disableBeamSync = 0,
automaticBeamSync = 1,
forcedBeamSyncMode = 2
} beamSyncMode;
@interface AppDelegate ()
@property (weak) IBOutlet NSWindow *window;
@end
@implementation AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
int mode = disableBeamSync;
CGSSetDebugOptions(mode ? 0 : 0x08000000);
CGSDeferredUpdates(mode);
[self.window close];
[NSApp terminate:self];
}
- (void)applicationWillTerminate:(NSNotification *)aNotification {
// Insert code here to tear down your application
}
@end