Skip to content

Instantly share code, notes, and snippets.

View aquarius's full-sized avatar

Markus Müller-Simhofer aquarius

View GitHub Profile
//
// XCTestCase+MNAsynchronousTestCase.h
// MindNodeTouch
//
// Created by Markus Müller-Simhofer on 28.07.13.
// Copyright (c) 2013 IdeasOnCanvas GmbH. All rights reserved.
//
#import <XCTest/XCTest.h>
@aquarius
aquarius / gist:5823110
Last active April 5, 2019 13:10
MindNode URL Schemes

#MindNode URL Schemes

Basic

###Launch MindNode mindnode://

####Examples mindnode://

###Open Document

@aquarius
aquarius / gist:5443924
Created April 23, 2013 14:17
MindNode Pro 1.10 Release Notes
1.10
Color Styles
• Color styles are now stored with the document.
• Five new color styles, including a new modern default style.
• Text links no longer have a dark blue font color.
• Copy and paste Styles.
Improvements
@aquarius
aquarius / gist:5344499
Created April 9, 2013 09:50
Convert any color into RGB
- (NSColor *)mn_rgbColor;
{
if ([[self colorSpaceName] isEqualToString:NSCalibratedRGBColorSpace]) return self;
// try to convert to RGB
NSColor *color = [self colorUsingColorSpaceName:NSCalibratedRGBColorSpace];
if (color) return color;
// convert to image and extract first px. The result won't be 100% correct, but better than a completely undefined color
NSBitmapImageRep *bitmapRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL pixelsWide:1 pixelsHigh:1 bitsPerSample:8 samplesPerPixel:4 hasAlpha:YES isPlanar:NO colorSpaceName:NSCalibratedRGBColorSpace bytesPerRow:4 bitsPerPixel:32];
@aquarius
aquarius / gist:5311287
Created April 4, 2013 15:16
App.net Invites
join.app.net/p/tvwyjfdcgf
join.app.net/p/rtknglmmsf
join.app.net/p/clkjjlhrzj
join.app.net/p/vzzjkxybxp
join.app.net/p/jvfzkkkdxg
@aquarius
aquarius / gist:4977732
Last active December 13, 2015 21:28
iCloud Troubleshooting Guide

iCloud Troubleshooting Guide

#Requirements

  • iOS: MindNode touch 2.2+ on iOS 6+
  • Mac: MindNode Pro 1.8 on OS X 10.7. Due to Apple's licensing terms iCloud support is only available in the Mac App Store version.

#Basic Troubleshooting

  1. Make sure you are signed into the same iCloud account on all your devices.
  2. Verify that "Documents & Data" is enabled in the iCloud settings.
  • OS X: System Preferences > iCloud > Documents & Data
@aquarius
aquarius / gist:4676220
Created January 30, 2013 19:51
Reset iCloud Container on Mac
1. Close all open applications
2. In Finder select Go > Go to Folder…
3. Paste in "~/Library/Application Support/"
4. Move the "Ubiquity" folder onto your Desktop
5. Restart your Mac.
This will trigger redownloading of all iCloud documents. Documents that weren't uploaded to iCloud won't get restored. They will be in the folder you moved to the Desktop and you will need to manually move them back into iCloud.
@aquarius
aquarius / Readme.md
Last active October 2, 2020 10:16
Default Layout Offsets in MindNode

Change the spacing of the Layout Engine

Using the commands below you can optimized the spacings in our layout engine. For example in left/right layout you can get a narrower horizontal spacing by changing the MNDefaultsDefaultStyleNodeWidthOffset key. To do this:

  1. Close MindNode
  2. Open Terminal and paste in the commend. e.g. defaults write com.ideasoncanvas.mindnode.macos MNDefaultsDefaultStyleNodeWidthOffset 30
  3. Launch Mindnode again
@aquarius
aquarius / gist:3787222
Created September 26, 2012 10:24
Use NSSharingService from a text only NSToolbar
// In toolbarWillAddItem: create a new NSMenu
// set the delegate and add the menu as part of a NSMenuItem as menuFormRepresentation
- (void)menuNeedsUpdate:(NSMenu *)menu
{
// clear out in case we can no longer provide this service
[menu removeAllItems];
NSURL *fileURL = [self.document fileURL];
@aquarius
aquarius / gist:3378728
Created August 17, 2012 13:34
Appetizer Crash
Process: Appetizer [50088]
Path: /Users/USER/Downloads/Appetizer.app/Contents/MacOS/Appetizer
Identifier: com.stylemac.Appetizer
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: launchd [132]
User ID: 501
Date/Time: 2012-08-17 15:34:21.425 +0200
OS Version: Mac OS X 10.8 (12A269)