This file contains 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
Index: JavaScriptCore/profiler/ProfilerServer.mm | |
=================================================================== | |
--- JavaScriptCore/profiler/ProfilerServer.mm (revision 60307) | |
+++ JavaScriptCore/profiler/ProfilerServer.mm (working copy) | |
@@ -30,7 +30,7 @@ | |
#import "JSRetainPtr.h" | |
#import <Foundation/Foundation.h> | |
-#if PLATFORM(IPHONE_SIMULATOR) | |
+#if !PLATFORM(IPHONE) |
This file contains 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
static NSString * const AQPerThreadManagedObjectContext = @"AQPerThreadManagedObjectContext"; | |
void StoreManagedObjectContextForCurrentThread( NSManagedObjectContext * context ) | |
{ | |
[[[NSThread currentThread] threadDictionary] setObject: context forKey: AQPerThreadManagedObjectContext]; | |
} | |
NSManagedObjectContext * PerThreadManagedObjectContext( void ) | |
{ | |
NSManagedObjectContext * result = [[[NSThread currentThread] threadDictionary] objectForKey: AQPerThreadManagedObjectContext]; |
This file contains 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
/* | |
* NSException+Backtrace.h | |
* Utilities | |
* | |
* Created by Jim Dovey on 8/7/2010. | |
* | |
* Copyright (c) 2010 Kobo, Inc. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without |
This file contains 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 <Foundation/Foundation.h> | |
#import <CoreServices/CoreServices.h> | |
@interface Location | |
{ | |
FSRef fsRef; | |
HFSUniStr255 name; | |
} | |
@property (readonly) FSRef * fileRef; |
This file contains 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 <libkern/OSAtomic.h> | |
#import <dispatch/dispatch.h> | |
#import <objc/runtime.h> | |
@implementation MySingleton | |
+ (void) load | |
{ | |
// check for weak-linked libdispatch symbols | |
if ( dispatch_queue_create != 0 ) |
This file contains 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 <Availability.h> | |
// Fix a bug in the current iOS 4.2 beta SDK where 10.7 version isn't defined | |
#ifndef __MAC_10_7 | |
#define __MAC_10_7 1070 | |
#if !defined(__MAC_OS_X_VERSION_MAX_ALLOWED) || (__MAC_OS_X_VERSION_MAX_ALLOWED == __MAC_10_6) | |
#ifdef __MAC_OS_X_VERSION_MAX_ALLOWED | |
#undef __MAC_OS_X_VERSION_MAX_ALLOWED |
This file contains 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
tcpdump: listening on en2, link-type EN10MB (Ethernet), capture size 1024 bytes | |
01:27:17.649332 IP6 (hlim 64, next-header TCP (6) payload length: 44) ipaddevcamp-award-ipad.local.51327 > mac-pro.local.8632: Flags [S], cksum 0x68aa (correct), seq 2285601729, win 65535, options [mss 1440,nop,wscale 2,nop,nop,TS val 185853398 ecr 0,sackOK,eol], length 0 | |
0x0000: 6000 0000 002c 0640 fe80 0000 0000 0000 `....,.@........ | |
0x0010: 7e6d 62ff fee2 7698 fe80 0000 0000 0000 ~mb...v......... | |
0x0020: 021b 63ff feef 2e57 c87f 21b8 883b 83c1 ..c....W..!..;.. | |
0x0030: 0000 0000 b002 ffff 68aa 0000 0204 05a0 ........h....... | |
0x0040: 0103 0302 0101 080a 0b13 e5d6 0000 0000 ................ | |
0x0050: 0402 0000 .... | |
01:27:17.649406 IP6 (flowlabel 0xd0d99, hlim 64, next-header TCP (6) payload length: 44) mac-pro.local.8632 > ipaddevcamp-award-ipad.local.51327: Flags [S.], cksum 0x3d24 (correct), seq 1893664218, ack 2285601730, win 65535, options [mss 1440,nop,wscale 3,nop,nop,TS val 4548 |
This file contains 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
@implementation MyObject | |
@synthesize observer; | |
- (void) storeObserverVariable | |
{ | |
self.observer = [[NSNotificationCenter defaultCenter] | |
addObserverForName: @"TheNotification" | |
object: nil | |
queue: [NSOperationQueue mainQueue] |
This file contains 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
#!/usr/bin/ruby | |
require 'osx/cocoa' | |
require 'date' | |
OSX.require_framework "AddressBook" | |
filePath = "%%%{PBXFilePath}%%%" | |
fileName = File.basename(filePath) | |
projName = File.basename(File.dirname(filePath)) |
This file contains 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
From PrivateFrameworks/Bom.framework: | |
U _BOMCopierCopyWithOptions | |
U _BOMCopierCountFilesInArchive | |
U _BOMCopierFree | |
U _BOMCopierNew | |
U _BOMCopierSetCopyFileFinishedHandler | |
U _BOMCopierSetCopyFileStartedHandler | |
U _BOMCopierSetCopyFileUpdateHandler | |
U _BOMCopierSetFatalErrorHandler | |
U _BOMCopierSetFatalFileErrorHandler |