Last active
September 12, 2016 12:45
-
-
Save planetbeing/9637899 to your computer and use it in GitHub Desktop.
Make FaceTime always on top
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lldb --attach-name FaceTime | |
expr NSArray* $windows = (NSArray*)[(NSApplication*)[NSApplication sharedApplication] windows]; | |
expr unsigned int $count = [$windows count] | |
expr -- for(unsigned int i = 0; i < $count; ++i) { [(NSWindow*)[$windows objectAtIndex:i] setLevel:5]; } | |
expr Class $window = (Class)NSClassFromString(@"NSWindow") | |
expr void* $setLevel = (void*)class_getInstanceMethod($window, @selector(setLevel:)) | |
expr void* $description = (void*)class_getMethodImplementation($window, @selector(description)) | |
call (void)method_setImplementation($setLevel, $description) | |
process detach | |
quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I run this, I get this error and FaceTime freezes.
I'm on yosemite
10.10.4