How do I configure Apple's FileMerge program to function as Mercurial's merge tool? I have my .hgrc file setup in my home directory and I simply want to configure FileMerge as the merge program.
...
I'm trying to install py-appscript on the mac using 'sudo easy_install appscript'.
The command runs and I get a message saying "Installed /Library/Python/..../appscript=0.20.0-py2.5-maxosx-10.5-i386.egg".
However, when I run a tool that required this (osaglue) I get an error that py-appscript isn't installed. My guess is that it's insta...
My Mac OS application links with a non-system-provided framework Foo.framework. I added a reference to the framework in XCode and the app builds fine. I also have a rule which copies the framework into the output Frameworks folder (MyApp.app/Contents/Frameworks). However, at runtime the binary is looking for the framework in ~/Library/Fr...
.framework bundles contain header files which are also included when then framework is shipped. For instance, apps using Growl.framework end up installing the framework along with the app. This comes will all the headers and versioning foo, leading to bloat in download size.
Do most of you OSX developers end up cleaning the .framework i...
Hi all im having a bunch of crappy looking code here (dont get me on that). This code is posting a new entry on pastebin.com. Once you posted something on pastebin it will forward you to a new url address in php it uses header('Location:....');.
What i want to know is how to get the forwarded url from this NSMutableURLRequest..
PS: Deb...
I am a first year Comp. Sci. student and am looking for the best way to develop C++ on a Mac. I have Xcode and Textmate.
What are the benefits/negatives of each? Are there any better ones?
I am not a fan of having to use a whole project to run programs with Xcode. Is this the only way to do it, or am I mistaken?
Also, is there a way t...
I am a first year Comp. Sci. student and am looking for the best way to develop C++ on a Mac. I have Xcode and Textmate.
What are the benefits/negatives of each?
Are there any better ones?
Do you have any tips?
I am not a fan of having to use a project to run programs with Xcode. Is this the only way to do it, or am I mistaken?
...
I want to launch an app on OSX from a script. I need pass it command line arguments. Unfortunately, 'open' doesn't accept command line args.
The only option I can think of is to use 'nohup myApp > /dev/null &' to launch my app so it can exist independently of the script that launches it.
Any better suggestions?
...
I want to create a simple bash script to launch a Java program on OS X. The names of the file, the file path, and the immediate working folder all contain spaces. When I do this:
#!/bin/sh
cd `dirname $0`
I get
usage: dirname path
I have also tried putting quotes in all kinds of different places. The most elaborate example being
c...
I want to launch a child process on OS X such that the child process does not inherit the current process's open files/ports.
Any suggestions on how to accomplish this? Shell commands that I can invoke using the system() function would work too - I just don't know of a good shell command that enables this.
Thanks!
...
What's the best way to run an app using Java Service Wrapper 3.2.3 on Mac OS X 64-bit?
sh.script.in works, but there is no macosx-universal-64 version of the wrapper native binary (on JSW's 3.2.3 downloads page anyway http://wrapper.tanukisoftware.org/downloads/3.2.3/).
The result is the following error in the logs:
INFO | jvm 1 ...
Hi,
I have a .c code snipped that I don't want to port to Objective-C. This .c file worked on the iPhone platform, but not on OS X. It seems that the compiler doesn't know what to do with
#import <CoreGraphics/CoreGraphics.h>
and so it doesn't know CGImageRef:
ImageArray3D *ia3d_createWithCGImage(CGImageRef image, int nLargestEleme...
I am writing a library which uses a few functions from the windows user32.dll library, but I am compiling it with Mono to see how it fares on OS X. Unfortunately it cannot find the user32.dll library for obvious reasons.
But my question is this ... is there a similar library on OS X which I can use? I am specifically looking for the fol...
What resources would you recommend to pick up AppleScript. I come with a traditional C/C++ with Objective-C background.
I am also looking for tips on how to develop better and get faster documentation from the script editor. A sample tip would be 'lookup the sdef file of the app you want to script.
...
I have a massive number of shell commands being executed with root/admin priveleges through Authorization Services' "AuthorizationExecuteWithPrivileges" call. The issue is that after a while (10-15 seconds, maybe 100 shell commands) the program stops responding with this error in the debugger:
couldn't fork: errno 35
And then while the...
Normally macruby wants to install to /usr/local via 'rake install'
I want it in another location. How do I do this?
...
I keep running across references to MacRuby and was wondering if any of you have used it for iPhone/Objective C programming.
The MacRuby website says, "the goal of MacRuby to enable the creation of full-fledged Mac OS X applications which do not sacrifice performance in order to enjoy the benefits of using Ruby."
So, my question is: wh...
I can't find any evidence online of pthread_cond_wait being strange on Mac OS X, but it seems to be failing the simplest test for me.
The function
int pthread_cond_wait(pthread_cond_t *, pthread_mutex_t * );
is supposed to unlock the mutex argument #2 and then wait for a signal to be sent on the condition argument #1. I wrote a simpl...
If you did, would you mind sharing how you did the pyobjc install? I was trying to do it by installing PythonMac 2.5 (for the standalone bundle thru py2app), and doing easy_install of PyObjC. I always get those deprecated errors, primarily those declared in dyld.h, and inside objc_inject.m.
I tried compiling from source but still no luc...
I'm writing an application in C for the Mac (Leopard) that needs to do some work on receipt of power notifications, e.g. sleep, wake-up, shutdown, restart. It runs via launchd as a launchagent on login then begins monitoring for notifications. The code I'm using to do this is as follows:
/* ask for power notifications */
static void Sta...