6 hours ago
code
snippet
cocoa
os x


Daily Snippet

Default behavior of every document-based application is to open a blank (new) document at startup - but sometimes one want to open the last used document:

- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
{
NSDocumentController *docController = [NSDocumentController sharedDocumentController];
NSArray *docs = [docController recentDocumentURLs];
if ([docs count] > 0)
{
NSError *error = nil;
[docController openDocumentWithContentsOfURL:[docs objectAtIndex:0] display:YES error:&error];
if (!error)
{
return NO;
}
}
return YES;
}


Loading...



14 hours ago
mytumblr
moapp
update


myTumblr update available!

I’ve just uploaded the latest version of myTumblr.

This update adds rewritten tags and some improvements and bug fixes. You can now search for tags and easily delete them if needed…

myTumblr Website
myTumblr Screen shots
Download myTumblr (.app | Mac OS 10.5.8+ (Intel) | 3.4 MB)

Loading...




18 hours ago
quote


“Life is a mirror and will reflect back to the thinker what he thinks into it.”

Ernest Holmes

Loading...






2 days ago
habit
itunes


Creature Of Habit

I need my buttons where they’ve been for decades!

defaults write com.apple.iTunes full-window -1

Loading...





2 days ago
quote


“Every second you spend thinking about someone else’s dreams you take time away from your own.”

Yogi Ramen

Loading...




2 days ago
lol
pic
find


(via)


(via)

Loading...




2 days ago
pic
find


(via)


(via)

Loading...