Skip to content

Instantly share code, notes, and snippets.

View augard's full-sized avatar
🏠
Working from home

Lukas Foldyna augard

🏠
Working from home
View GitHub Profile
@augard
augard / Ubuntu 12.md
Last active August 29, 2015 14:26 — forked from behboud/Ubuntu 12.md
CartoDB stuff
@augard
augard / gist:4086223
Created November 16, 2012 10:22 — forked from odrobnik/gist:4086204
Forwarding keydown event to a search field
- (void)goToProductListWithEvent:(NSEvent *)event
{
self.selectedViewController = _productListViewController;
[self.view.window makeFirstResponder:_productListViewController.searchField];
_productListViewController.searchField.stringValue = [event characters];
int64_t delayInSeconds = 0.01;
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){