Skip to content

Instantly share code, notes, and snippets.

% 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
.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
* 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
@interface AClassThatUsesNSWorkspace : NSObject
{
NSWorkspace * _workspace;
}
// Production code uses this
- (id)init;
// Useful for testing (to inject a mock NSWorkspace)
- (id)initWithWorkspace:(NSWorkspace *)workspace;
% 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.
order Allow,Deny
deny from x.x.x.x.
allow from all
- (void)start;
{
if (![NSThread isMainThread])
{
[self performSelectorOnMainThread:@selector(start) withObject:nil waitUntilDone:NO];
return;
}
NSLog(@"opeartion for <%@> started.", _url);
@ddribin
ddribin / gist:185897
Created September 12, 2009 16:57
main.m
//
// main.m
// Testing
//
// Created by Dave Dribin on 9/12/09.
// Copyright 2009 Bit Maki, Inc.. All rights reserved.
//
#import <Cocoa/Cocoa.h>
<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>
/**
* Allow hiding of disclosure triangles.
* Taken from:
*
* http://blog.petecallaway.net/?p=11
*/
- (NSRect)frameOfOutlineCellAtRow:(NSInteger)row;
{
BOOL showTriangle = YES;