A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://svn.python.org/projects/python/branches/tk_and_idle_maintenance/Mac/BuildScript/seticon.m below:

/* * Simple tool for setting an icon on a file. */ #import #include int main(int argc, char** argv) { if (argc != 3) { fprintf(stderr, "Usage: seticon ICON TARGET"); return 1; } NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; NSString* iconPath = [NSString stringWithUTF8String:argv[1]]; NSString* filePath = [NSString stringWithUTF8String:argv[2]]; [NSApplication sharedApplication]; [[NSWorkspace sharedWorkspace] setIcon: [[NSImage alloc] initWithContentsOfFile: iconPath] forFile: filePath options: 0]; [pool release]; return 0; }

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4