Skip to content

Instantly share code, notes, and snippets.

Nikolai Ruhe NikolaiRuhe

  • Berlin
Block or report user

Report or block NikolaiRuhe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:d07f6cbdb2d82e2820d2
<?xml version="1.0" encoding="utf-8"?>
<form id="template000007" originalId="tempalte000007" xsi:schemaLocation=" FormSchema.xsd" xmlns:xsi="" xmlns:meta="" xmlns="">
<servertag xmlns:meta="" xmlns:oppc="">
<logo id="TGSLOGO3"/>
<sheet title="Protokoll zur Technischen Trocknung">
<checkboxfield title="Protokoll zur Technischen Trocknung ausfüllen" refname="PROTTROCK" visibility="screen"/>
NikolaiRuhe / NRDelegateProxy
Created Sep 23, 2014
NRDelegateProxy is an Objective-C proxy class used for intercepting delegate callbacks.
View NRDelegateProxy
// NRDelegateProxy is a base class for proxy objects that are used as intercepting
// delegates in other objects.
// NRDelegateProxy is subclassed to customize delegate behavior by selectively responding
// to some delegate methods while passing on other methods. It can thus be used to implement
// a chain of delegates where each delegate is responsible for some specific task.
// Below is an example using a UITextField. It sets up a chain of delegates that looks as follows:
// UITextField -> NRTextFilterProxy -> NRKeyboardHiderProxy -> ViewController
View 1820FE15-11C0-2215-4852-8595648916A6.xml
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="" xmlns:oppc="" id="1820FE15-11C0-2215-4852-8595648916A6" originalId="516C5610-2CE6-0AF0-E100-8000C0A880BF">
<action id="$BS_FORMTAKE" includeInMenu="true" title="Übernehmen">
<server command="$BS_FORMTAKE"/>
NikolaiRuhe / gist:5546537
Last active Dec 17, 2015
Simple demo code illustrating the advantages of enumerateSubstringsInRange over componentsSeparatedByString.
View gist:5546537
// Created by Nikolai Ruhe on 2013-05-09.
// Copyright (c) 2013 Savoy Software. All rights reserved.
#import <Foundation/Foundation.h>
static NSString *replaceLongWords(NSString *originalString, NSString *replaceWord, NSUInteger maxChar)
NSMutableString *result = [NSMutableString stringWithCapacity:[originalString length]];
You can’t perform that action at this time.