Skip to content

Instantly share code, notes, and snippets.

View Pegolon's full-sized avatar

Markus Kirschner Pegolon

View GitHub Profile
\b(([\w-]+://?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/)))
hdiutil convert /path/to/filename.dmg -format UDTO -o /path/to/savefile.iso
@Pegolon
Pegolon / ViewFactory.m
Created November 15, 2008 19:05
ViewFactory for using UITableViewCell in Interface Builder
#import "ViewFactory.h"
@implementation ViewFactory
- (id) initWithNib:(NSString*)aNibName
{
if (self == [super init]) {
viewTemplateStore = [[NSMutableDictionary alloc] init];
NSArray * templates = [[NSBundle mainBundle] loadNibNamed:aNibName owner:self options:nil];
for (id template in templates) {
@Pegolon
Pegolon / ViewFactory.h
Created November 15, 2008 18:51
Header for ViewFactory
@interface ViewFactory : NSObject {
NSMutableDictionary * viewTemplateStore;
}
- (id) initWithNib:(NSString*)aNibName;
- (UITableViewCell*)cellOfKind:(NSString*)theCellKind forTable:(UITableView*)aTableView;
@end