Skip to content

Instantly share code, notes, and snippets.

Matthias Gansrigler eternalstorms

Block or report user

Report or block eternalstorms

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
@eternalstorms
eternalstorms / Apple Evangelists.txt
Created Jun 12, 2013
Apple Evangelists (WWDC 2013)
View Apple Evangelists.txt
UI- and App Frameworks Evangelist - Jake Behrens, behrens@apple.com, twitter: @Behrens
- What's new in Cocoa
- Accessibility in iOS
- Building User Interfaces for iOS 7
- Getting Started with UIKit Dynamics
- What's new in Cocoa Touch
- What's New With Multitasking
- Best Practices for Cocoa Animation
- Improving Power Efficiency with App Nap
- Introducing Text Kit
@eternalstorms
eternalstorms / gist:5030337
Created Feb 25, 2013
Enable apps to auto-switch between dedicated & integrated graphics card
View gist:5030337
NSSupportsAutomaticGraphicsSwitching = YES (in Info.plist)
@eternalstorms
eternalstorms / gist:4463450
Created Jan 5, 2013
Twitter Apple Accounts (media, pr, etc)
View gist:4463450
Steve Wozniak, Apple alumni and all-around amazing person - @stevewoz
Victor Agreda, Jr., TUAW - @superpixels
Mike T. Rose, TUAW - @miketrose
John Gruber, Daring Fireball - @gruber
Arnold Kim, MacRumors - @arnoldkim
Jason Snell, Macworld - @jsnell
Josh Lowensohn, CNET - @josh
Chris O'Brien, LA Times - @obrien
Mark Gurman, 9to5Mac - @markgurman
Matthew Panzarino, TNW - @panzer
@eternalstorms
eternalstorms / gist:4305789
Created Dec 16, 2012
Die Uhr (Johann Gabriel Seidl)
View gist:4305789
Die Uhr
Ich trage, wo ich gehe, stets eine Uhr bei mir,
wieviel es geschlagen habe, genau seh ich an ihr.

Es ist ein großer Meister, der künstlich ihr Werk gefügt,
wenn gleich ihr Lauf nicht immer dem törichten Wunsche genügt.

Ich wollte, sie wäre rascher gegangen an manchem Tag,
ich wollte, sie hätte manchmal verzögert den raschen Schlag.

In meinem Leiden und Freuden, im Sturm und in der Ruh,
was immer geschah im Leben, sie pochte den Takt dazu.

Sie schlug am Sarge des Vaters, sie schlug an des Freundes Bahr!
Sie schlug am Morgen der Liebe, sie schlug am Traualtar.

Sie schlug an der Wiege des Kindes, sie schlägt, will's Gott, noch oft,
wenn bessere Tage kommen, wie meine Seel es hofft.

Und ward sie auch manchmal träger, und drohte zu stocken ihr Lauf,
so zog der Meister immer großmütig sie wieder auf.

Doch stände sie einmal stille, dann wär's um sie geschehn,
kein anderer, als der sie fügte, bringt die zerstörte zum Geh'n.

Dann müßt ich zum Meister wandern, der wohnt am Ende wohl weit,
wohl draußen,
@eternalstorms
eternalstorms / NSSharingServicePicker+ESSSharingServicePickerMenu.h
Created Nov 22, 2012
A category on NSSharingServicePicker to create a menu that can be used as a sharing submenu or main menu
View NSSharingServicePicker+ESSSharingServicePickerMenu.h
//
// NSSharingServicePicker+ESSSharingServicePickerMenu.h
//
// Created by Matthias Gansrigler on 22.11.12.
// Copyright (c) 2012 Eternal Storms Software. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface NSSharingServicePicker (ESSSharingServicePickerMenu)
@eternalstorms
eternalstorms / gist:4098116
Created Nov 17, 2012
Hide the Full Screen button of an NSWindow that is OS X Lion+ full screen capable
View gist:4098116
- (void)hideFullscreenButtonOfWindow:(NSWindow *)aWindow
{
NSButton *fsButton = [aWindow standardWindowButton:NSWindowFullScreenButton];
[fsButton setHidden:YES];
fsButton.alphaValue = 0.0;
[fsButton setEnabled:NO];
fsButton.image = nil;
fsButton.alternateImage = nil;
}
@eternalstorms
eternalstorms / gist:3995963
Created Nov 1, 2012
URLs for sending users to rate your App on the (Mac/iOS) App Store
View gist:3995963
Mac App Store:
macappstore://itunes.apple.com/app/idMACAPPSTOREAPPID
iOS App Store:
itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=IOSAPPSTOREAPPID
@eternalstorms
eternalstorms / links.txt
Created Oct 20, 2012
Mac/iOS App Store Links and Direct Download Links for Demos
View links.txt
@eternalstorms
eternalstorms / Example.m
Created Sep 24, 2012
Pass a block as a void pointer in ARC
View Example.m
- (void)delete
{
void (^myBlock)() = ^{/*some block action*/};
NSBeginCriticalAlertSheet(NSLocalizedString(@"ReallyDeleteWarning", nil),
NSLocalizedString(@"Delete", nil),
NSLocalizedString(@"Cancel", nil), nil, self.window, self, nil,
@selector(deleteAlertWindow:didDismissWithCode:context:),
(__bridge_retained void *)([myBlock copy]),
NSLocalizedString(@"ReallyDeleteWarningMsg", nil));
@eternalstorms
eternalstorms / iCloud.txt
Created Sep 20, 2012
iCloud file sync step by step
View iCloud.txt
1) Turn on iCloud in your entitlements. In Xcode, you can find 'em in your target, under the Summary tab, at the bottom. Turn on 'Enable Entitlements' and press + on the iCloud Containers list.
2) You get a folder. Stuff in it gets synchronized around. This is the easy part. You can use the -[NSFileManager URLForUbiquityContainerIdentifier:] call to find out where the container is.
Extra notes: The identifier is whatever name Xcode added to the list in step 1. Make sure you call this at least once, because calling this turns on all the iCloud stuff in Foundation. If iCloud is turned off, this will return nil.
3) This folder is organized like a home folder. Yep, this means this one can have a Documents folder, a Library, whatever. You have to create those folders if you want to use them.
4) Looking at the folder directly is not useful. (Some of the files may not have sync'd yet, so they're not yet in the folder.) Use NSMetadataQuery. This will give you all files, including those not downloaded yet.
To searc
You can’t perform that action at this time.