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
% nm -v -arch all $PWD/HIToolbox | egrep '(architecture|RegisterEventHotKey)' | |
/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/HIToolbox (for architecture ppc7400): | |
0036c41c s RegisterEventHotKey_bp | |
00149a94 T _RegisterEventHotKey | |
/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/HIToolbox (for architecture i386): | |
0005058d T _RegisterEventHotKey | |
/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/HIToolbox (for architecture x86_64): | |
0000000000042939 T _RegisterEventHotKey |
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
.segment "HEADER" | |
.byte "NES", $1A ; iNES header identifier | |
.byte 2 ; 2x 16KB PRG code | |
.byte 1 ; 1x 8KB CHR data | |
.byte 0, 0 ; mapper 0, vertical mirroring | |
;;;;;;;;;;;;;;; | |
;;; "nes" linker config requires a STARTUP section, even if it's empty |
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
* Automatically set build settings when adding a unit test bundle | |
* Automatically create a unit test target when creating an app/framework/lib target | |
* Re-release OCUnit as open source (http://opensource.apple.com/release/developer-tools-313/) | |
* Add an executable when adding a unit test target | |
* Don't run the run loop when injecting tests into a dependent target | |
* Make creating custom assertions easier | |
* Allow running of subset of tests via pattern matching | |
* Present test results of all run tests in a table-like view |
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
@interface AClassThatUsesNSWorkspace : NSObject | |
{ | |
NSWorkspace * _workspace; | |
} | |
// Production code uses this | |
- (id)init; | |
// Useful for testing (to inject a mock NSWorkspace) | |
- (id)initWithWorkspace:(NSWorkspace *)workspace; |
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
% host -t mx dribin.org | |
dribin.org mail is handled by 20 mx1.dribin.net. | |
dribin.org mail is handled by 10 secure.dribin.net. | |
% host secure.dribin.net | |
secure.dribin.net has address 74.52.158.130 | |
% host 74.52.158.130 | |
130.158.52.74.in-addr.arpa domain name pointer 82.9e.344a.static.theplanet.com. | |
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
order Allow,Deny | |
deny from x.x.x.x. | |
allow from all | |
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
- (void)start; | |
{ | |
if (![NSThread isMainThread]) | |
{ | |
[self performSelectorOnMainThread:@selector(start) withObject:nil waitUntilDone:NO]; | |
return; | |
} | |
NSLog(@"opeartion for <%@> started.", _url); |
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
// | |
// main.m | |
// Testing | |
// | |
// Created by Dave Dribin on 9/12/09. | |
// Copyright 2009 Bit Maki, Inc.. All rights reserved. | |
// | |
#import <Cocoa/Cocoa.h> |
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
<key>LSMinimumSystemVersion</key> | |
<string>${MACOSX_DEPLOYMENT_TARGET}</string> | |
<key>LSArchitecturePriority</key> | |
<array> | |
<string>x86_64</string> | |
<string>i386</string> | |
<string>ppc</string> | |
</array> | |
<key>LSMinimumSystemVersionByArchitecture</key> | |
<dict> |
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
/** | |
* Allow hiding of disclosure triangles. | |
* Taken from: | |
* | |
* http://blog.petecallaway.net/?p=11 | |
*/ | |
- (NSRect)frameOfOutlineCellAtRow:(NSInteger)row; | |
{ | |
BOOL showTriangle = YES; | |