Skip to content

Instantly share code, notes, and snippets.

#define blockSafe_cat(A, B) A##B
#define blockSafe_line(V, TMP) typeof(V) blockSafe_cat(blockSafe_tmp__, TMP) = V; __block typeof(V) V = blockSafe_cat(blockSafe_tmp__, TMP)
#define blockSafe(V) blockSafe_line(V, __LINE__)
#include "Painting.h"
#include "Bezier.h"
#include "ProgressOp.h"
#include <math.h>
#include <sys/time.h>
#include <float.h>
#define MAX_ZOOM 12.0
#define MIN_ZOOM -40.0
+ (id)sharedPreferencesWindowController
{
static FakeFingerPreferencesWindowController *controller = nil;
if(!controller) {
controller = [[FakeFingerPreferencesWindowController alloc] initWithWindowNibName:@"Preferences"];
}
return controller;
}