zingo


Member since 06/17/2007

zingo

Location: Berlin/Germany

24 snippets

9391 profile views

4 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

zingo's Recent SnippetsTagged osx



« Prev 1 Next »
Cocoa provides NSTask to run subprocesses. It can be used to run shell scripts, but all this manual pipe and file handling is a bit cumbersome. Fortunately, for a simple script, we can use the trusty old system and redirect its result to a file.
0 1058 posted 13 years ago by zingo
Do you need you app to do something when it is first run on a certain computer? Do you need to know if it has been run before? Enter the following code into your Application Delegate. This code creates a BOOL that is created when the app is run. T...
0 1092 posted 13 years ago by zingo
Get a list of providers for DTrace that OSX supports. (DTrace is a probe/profiling tool created by Sun that came with Mac OS X starting with Leopard.)
0 966 posted 13 years ago by zingo
Drawing scaled rectangles of arbitrary width and height that keeps the corner and sides properly scaled while growing the center.
1 1074 posted 14 years ago by zingo
List of breakpoints for debuging with gdb. Add them to your ~/.gdbinit.
0 970 posted 14 years ago by zingo
Remove all the keys of the application’s preferences file from ~/Library/Preferences with Cocoa’s NSUserDefaults class.
2 996 posted 16 years ago by zingo
Place this in your ~/.bash_profile then type tab in your terminal window to see some magic happen.
0 847 posted 16 years ago by zingo
Using a gcc predefined macro, __DATE__, the code can know for itself when it was compiled, and build in an expiration date based on that value. The former code (http://snipplr.com/view/3448/kill-app-after-expire-date/) was not internationalised an...
5 1122 posted 16 years ago by zingo
This can be used to test FS type.
1 997 posted 16 years ago by zingo
recover to normal speed with /sbin/ipfw delete 100 /sbin/ipfw delete 200 ... or reboot
0 955 posted 16 years ago by zingo
0 1048 posted 16 years ago by zingo
0 925 posted 16 years ago by zingo
0 925 posted 16 years ago by zingo
2 929 posted 16 years ago by zingo
Macro to give an asl_log-like NSLog.
2 1155 posted 16 years ago by zingo
4 970 posted 16 years ago by zingo
A database table is basically an array of dictionary objects. As long as all the fields are valid property list types, you can loop through the array creating a managed object for each dictionary and setting the values. If you have an array con...
2 941 posted 17 years ago by zingo
Prints content from an NSError or NSArray content from a managedObjectContext.
0 928 posted 17 years ago by zingo
List the current version and installation date of every application on a OS X system, using of Spotlight.
1 688 posted 17 years ago by zingo
Using a gcc predefined macro, __DATE__, the code can know for itself when it was compiled, and build in an expiration date based on that value. For a internationalised version see: http://snipplr.com/view/7196/kill-app-after-expire-date-suicidal-c...
1 1185 posted 17 years ago by zingo
8 917 posted 17 years ago by zingo
« Prev 1 Next »