osx

XSLT: Transform XML files tree

I have the following file structure (XML files 'index.xml' in nested folders): index.xml foo/index.xml foo/sub/index.xml foo/.../index.xml bar/.../index.xml Now I have to transform each of this XML files with a given XSL stylesheet. The result should be the same folder structure (overwriting would be OK). What would be your approach t...

Git Status Across Multiple Repositories on a Mac

I have been searching for a solution to this for a while and have not found quite what I need. I have several Git Repositories in a folder on my Mac (OSX 10.6) and would like a script or tool that will loop through all the repositories and let me know if any of them needs "commit"-ing. This is my structure Sites   /project1   /pro...

Is there a src.jar in OSX?

In Windows, there is ( was a ) src.jar file that contains the java source files of the Java platform. Is there something similar for Java 1.6 in OSX? I would like to specify this to my IDE so I can navigate to that source. ...

FileMerge: This file type cannot be merged.

FileMerge.app fails with an odd message: This file type cannot be merged. when I try to save successfully merged text files, which definitely can be merged. (I invoke FileMerge from git using opendiff tool on OS X 10.6.3, but problem happens even when I select files to merge manually) Why is it happening? How can I avoid this pr...

Installing PIL 1.1.6. ( error: command 'gcc' failed with exit status 1 )

I'm using Mac OS X Snow Leopard and i can not install PIL 1.1.6. I have faced with: error: command 'gcc' failed with exit status 1 Should I change the version of gcc? Thanks. ...

appscript on OSX 10.6.3 / Python 2.6.1

I am having some trouble getting appscript installed on OS/X 10.6.3 / Python 2.6.1. When I issue sudo easy_install appscript I get "unable to execute gcc-4.2: No such file or directory". Even when I do export CC=/Developer/usr/bin/gcc-4.2 (a valid gcc-4.2 executable), easy_install barks. What could be the issue? Disclaimer: OS/X new...

Problems compiling libjingle/gtk+-2.0 for Mac OS X

Hi All, I'm trying to compile libjingle on Mac OSX Snow Leopard. The INSTALL file said to './configure', 'make' and 'make install', as usual. But make fails for me. Initially it gave some messages indicating that I didn't have pkg-config installed (I guess OSX doesn't come with it installed?), so I downloaded pkg-config from http://pkgco...

Finding text's bounding rect in Core Text

I'm trying to find the boundaries of a line of text in Core Text. For simplicity, assume it has a single character. At the moment I'm using the following method: line = CTLineCreateWithAttributedString(attrString); rect = CTLineGetImageBounds(line, context); It works most of the times, but for some characters, like math italic d (Unic...

How to access fsevents to get the file system events?

Hi All, Though i had read the fsevents article provided by apple developer site, i m having issues in receiving the events. I need some samples to fetch events. Need some samples. Thanks in advance. rgds, herby ...

Crash in OS X Core Data Utility Tutorial

I'm trying to follow Apple's Core Data utility Tutorial. It was all going nicely, until... The tutorial uses a custom sub-class of NSManagedObject, called 'Run'. Run.h looks like this: #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @interface Run : NSManagedObject { NSInteger processID; } @property (retain) NSDat...

In IntelliJ on OS X, how do you clear out all global setting info, licensing etc. (external to any project)

I am having some low level issues with IntelliJ on my mac, I really want to just zero everything out and start over. But even after removing the application and re-installing it, IntelliJ still remembers things like what the last project was, what licensing key to use etc. Where is this information stored? And what is the best way to c...

xvfb on a machine with a display, can an application run 'in the background?'

I'm setting up to cron a web scraping job, using xvfb, firefox, and watir on my Mac OS X. In testing the script so far, firefox pops up visibly on the local desktop, the watir script executes, and then firefox exits (I quit firefox in my script). I'd like to set the xvfb DISPLAY such that firefox will run, but won't be seen on the loca...

Running proguard on OSX: Where is Apple's equivalent to the rt.jar?

I'm running proguard to shrink my jar file. One of the parameters it needs is the system's runtime jar. This is at $JAVA_HOME/lib/rt.jar on Sun distributions, but not on Apple's Mac OSX (Snow Leopard in my case). Is there an rt.jar for OSX? ...

Apple Mac Software Development

I'm planning on developing an Apple Mac application which will collect hardware information from the host Mac and also installed software info. The hardware and software info will be collected in an encrypted XML file and then posted back to a website. The application should run as a "service" or background process on the Mac and can b...

Window bounds set on window using AppleScript in OS X are being ignored

I am trying to create a small AppleScript to create and move some Terminal windows around my screen. The problem I am running into is that in some cases, it seems that OS X is ignoring the bounds I am setting. Using the AppleScript Editor: tell application "Terminal" to set the bounds of the first window to {0, 50, 600, 700} tell appli...

NSKeyedArchiver on NSArray has large size overhead

I'm using NSKeyedArchiver in Mac OS X program which generates data for iPhone application. I found out that by default, resulting archives are much bigger than I expected. Example: NSMutableArray * ar = [NSMutableArray arrayWithCapacity:10]; for (int i = 0; i < 100000; i++) { NSString * s = [NSString stringWithFormat:@"item%06d", i...

How can I conditionally color files and folders in the OS X Finder?

I want to color badge files and folders based on the some condition in finder, what is the approach to achieve this in Mac OS X 10.6 I have checked this question: This only talk about the context menu in finder http://stackoverflow.com/questions/1651075/finder-plugin-in-snow-leopard I have even checked: http://scplugin.tigris.org/ even...

Start developing for macosx

hello, I would like to start developing for macosx. I need to create a small native application to help me do some stuff. I never developed in Objective-C, have no idea about cocoa, Xcode, NIB and similar stuff. I don't want to learn by slapping examples together though. This would probably make things done, but I would not learn anyth...

Symbol not found: _curl_easy_cleanup

I am working on porting a python application to Mac OS X. The application makes use of pycurl and PyCDF. When I run my code, I get this error : > File > "/Library/Python/2.5/site-packages/pycdf/pycdfext.py", > line 5, in <module> > import _pycdfext ImportError: dlopen(/Library/Python/2.5/site-packages/pycdf/_pycdfext.so, > 2): Symb...

Looking for the Mach-O loader source code in the Darwin sources.

As I understand it, Mach-O should be part of the Darwin open source packages. Could someone please help me locate the loader? I've no idea where it is and where to download that code from. Any help would be greatly appreciated! ...