Skip to content

Instantly share code, notes, and snippets.

View ldrr's full-sized avatar

Christoph Lederer ldrr

  • Christoph Lederer
  • Wiener Neustadt / Austria
View GitHub Profile
@matthiasplappert
matthiasplappert / gist:9493050
Last active August 29, 2015 13:57
QuickLook Debugging for `UIView`
@interface UIView (MPAdditions)
@end
@implementation UIView (MPAdditions)
- (id)debugQuickLookObject {
if (self.bounds.size.width < 0.0f || self.bounds.size.height < 0.0f) {
return nil;
}
@olegam
olegam / gist:8846283
Created February 6, 2014 15:23
AppCode Objective-C Class file template with class extension

Since I always declare private properties in the class implementation file it's nice to have new class implementation files already include a class extension.

This is my template file for doing this. You change the template in Preferences->File and Code Templates->Templates->Objective-C Class.

#parse("Objective-C File Header.m")
#import "${HEADER_FILENAME}"

@interface ${NAME} ()