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
NSWorkspace *workspace = [NSWorkspace sharedWorkspace]; | |
NSDictionary *activeAppDict = [workspace activeApplication]; | |
ProcessSerialNumber psn; | |
psn.highLongOfPSN = [[activeAppDict objectForKey:@"NSApplicationProcessSerialNumberHigh"] intValue]; | |
psn.lowLongOfPSN = [[activeAppDict objectForKey:@"NSApplicationProcessSerialNumberLow"] intValue]; | |
SetFrontProcess( &psn ); |
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
NSImageRep *originalCursorRep = [originalCursorImage bestRepresentationForRect:NSMakeRect(0, 0, [originalCursorImage size].width * retinaScale, [originalCursorImage size].height * retinaScale) context:nil hints:[NSDictionary dictionaryWithObject:[NSAffineTransform transform] forKey:NSImageHintCTM]]; |
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
import Cocoa | |
import ImageIO | |
import CoreGraphics | |
var cs = CGColorSpaceCreateDeviceRGB(); | |
var bitmapOptions = CGBitmapInfo.byteOrder16Little.rawValue | CGImageAlphaInfo.premultipliedLast.rawValue; | |
var bitmapContext = CGContext(data: nil, width: 10, height: 10, bitsPerComponent: 16, bytesPerRow: 0, space: cs, bitmapInfo: bitmapOptions); |
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
118973149535723176502126385303097020516906332229462420044032373389173700552297072261641029033652888285354569780749557731442744315367028843419812557385374367867359320070697326320191591828296152436552951064679108661431179063216977883889613478656060039914875343321145491116008867984515486651285234014977303760000912547939396622315138362241783854274391783813871780588948754057516822634765923557697480511372564902088485522249479139937758502601177354918009979622602685950855888360815984690023564513234659447638493985 |
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
Hi August, | |
This is a courtesy email regarding Bug ID# 23538812. | |
Engineering has requested the following information in order to further investigate this issue: | |
- Please attach relevant crash logs to this bug report. | |
--- Crash Logs Instructions --- | |
https://developer.apple.com/bug-reporting/ios/crash/ |
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
#import <Carbon/Carbon.h> | |
static OSStatus handleAppFrontSwitched(EventHandlerCallRef inHandlerCallRef, EventRef inEvent, void *inUserData); | |
EventHandlerRef MySkankyGlobalFrontAppSwitchedHandlerRef; | |
@implementation JSTWhatever |
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
Process: Acorn [1635] | |
Path: /Users/USER/*/Acorn.app/Contents/MacOS/Acorn | |
Identifier: com.flyingmeat.Acorn4 | |
Version: 4.5.1 (8996) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Acorn [1635] | |
User ID: 501 | |
Date/Time: 2014-11-01 20:32:18.860 -0500 |
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
Thread 7:: Dispatch queue: com.apple.NSXPCConnection.user.com.getdropbox.dropbox.garcon.apple-extension-service | |
0 libsystem_kernel.dylib 0x00007fff8b6b652e mach_msg_trap + 10 | |
1 libsystem_kernel.dylib 0x00007fff8b6b569f mach_msg + 55 | |
2 com.apple.CoreServices.CarbonCore 0x00007fff844c0aa9 _scsclient_CacheableGetDataWithStringKey + 195 | |
3 com.apple.CoreServices.CarbonCore 0x00007fff844c09dd RemoteCacheable::GetWithStringKey(unsigned int, char const*, unsigned long*, unsigned int*) + 75 | |
4 com.apple.CoreServices.CarbonCore 0x00007fff844c08ab _CSGetNamedData + 119 | |
5 com.apple.CoreFoundation 0x00007fff8c962ec0 _CFPropertyListCopyShared + 176 | |
6 com.apple.CoreFoundation 0x00007fff8ca7684d CFBundleCopyLocalizedStringForLocalization + 397 | |
7 com.apple.Foundation 0x00007fff917dd315 -[NSBundle localizedStringForKey:value:table:] + 64 | |
8 com.apple.Foundation 0x00007fff918af07e -[NSError(NSErrorPrivate) _cocoaErrorString:fromBundle:tableName:] + 693 |
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
SInt32 TSSystemVersion(void) { | |
static dispatch_once_t once; | |
static int TSSystemVersionVal = 0x00; | |
dispatch_once(&once, ^{ | |
NSDictionary *d = [NSDictionary dictionaryWithContentsOfFile:@"/System/Library/CoreServices/SystemVersion.plist"]; | |
NSString *prodVersion = [d objectForKey:@"ProductVersion"]; | |
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
var filter = [JSTQuickCIFilter quickFilterWithKernel:""" | |
bool isOdd(int v) { | |
float dividend = float(v) / 2.0; | |
return dividend != floor(dividend); | |
} | |
vec4 hsvToRgb(vec4 hsv) { | |
float h = hsv.r; |