mac

User-friendly approach for network streaming, playing and seeking of audio files in Mac OS X 10.5

Please advise a combination of server and client technologies, tools and frameworks to implement a solution that meets the following requirements? File server in the network has a huge library of mp3/aac/aiff/wav music files Desktop cocoa application accesses audio files using URLs: rtmp, http, rtsp+rtp, ftp — how to make a choice? Audio...

Install Unhandled Exception filters for Mac OS X

Windows has SetUnhandledExceptionFilter API to enable applications to handle crashes. Is there something similar for the Mac platform? I didn't find anything like it on developer.apple.com... Thanks! ...

NSString to wchar_t*?

I can't seem to find a good built-in way to convert an NSString to wchar_t... any tips on how to do this? Anything Apple exposes on the NSString class is for c-strings (char*) or for unichars, but nothing for wchar*. ...

Unable to start XMonad in Mac

I have completed every step in XMonad's tutorial for Mac. However, I cannot start it. My shell did not run my .profile initially properly. My PATH works now correctly. I run the following command unsuccessfully startx and I get font_cache: Scanning user font directories to generate X11 font caches font_cache: Updating FC cache xauth...

What's a good IDE for Python on the Mac?

I'm about to start a new job where the coding practices are heavily centered around TDD and refactoring, and whose primary development language is Python. I come from the Java world, and have been a confident user of Eclipse for a good, long time. When not working in Java, I use emacs. I'm looking for an IDE for Python that will give ...

How to define a system-wide alias for a Python script?

I am working on Mac OS X and I have a Python script which is going to be called by other scripts and programs (Apple's launchd in particular). I could call it with python /Users/xyz/long/absolute/path/to/script.py arg1 arg2 Since the location of the script might change, I want to decouple other scripts and the launchd configuration fi...

Build Boost on Mac with Xcode...

Hi everyone! I've recently got acquainted with Boost library and I'd like to use it in my Xcode project. But sadly there is no HowTo or FAQ on how to do it :( What's the sequence of actions to build and use Boost libraries in Xcode? Thanks in advance :) ...

MySQL 5 doesn't recognize BEFORE?

In MySQL 5.0.51b on my Mac, ordinals beyond FIRST fail, as does BEFORE. So, ALTER TABLE my_contacts ADD COLUMN phone VARCHAR(10) FOURTH; fails altogether, as would ALTER TABLE my_contacts ADD COLUMN phone VARCHAR(10) BEFORE email; Do these work with any other flavors or versions of MySQL? ...

Is it possible to add an item to the right-click context menu of a Mac OS programmatically?

I have a program that works with a variety of files on both the Windows and Mac OS. I would like to give the user the option of adding a new option to their right click/control click context menu to the effect of "Compress with [Name of App]". I know this is quite possible in Windows with modifications to the registry, but is there a w...

Uploading a file over HTTP/HTTPS and/or FTP/FTPS on a Mac

I have found numerous examples on uploading a file to a web server via C++ on Windows. However I am struggling after a lot of searching (and I thought I was good with Google!) to find any examples to help me achieve the same on a Mac. Can anyone point me towards some help on how to upload a file to a web server on a Mac OS using either...

How to display java swing on X11 when running on Mac

I would really like to be able to run our test suite on Xvfb so that swing windows don't keep popping up in the way of my work. Unfortunately I cannot seem to find a way to get the java runtime to use the display specified in the DISPLAY environment variable. I suppose this is because the Mac JDK is hardwired to use the (non-X-based) Mac...

Installing Git on OS X

I am trying to install Git on Mac OS X Leopard. I'm trying to avoid the MacPorts/Fink route. I'm also trying to avoid the installer on Google because I've gotten very far on my own, but if I have to I'll go ahead and download the installer. Anyway, I have Git installed. /usr/local/bin/git. The problem is that none of the documentation i...

Is Netbeans equally awesome for Ruby development on the Mac?

I realize most Ruby development on the Mac uses Textmate but I love Netbeans in the Windows environment and am wondering whether it's equally awesome on the Mac - even if it's swimming against the stream a little bit, would Netbeans pose any issues as a Ruby IDE on the Mac? ...

SVN server for the Mac that's easy to set up?

i have tried VisualSVN server for the PC, and it seems pretty easy to install and use. The only catch is that my PC with Vista does crash, or can become not so responsive sometimes, so I am thinking of using an SVN server on the Mac instead. is there one on the Mac that is easy to install and is reliable too? ...

Unable to find logFiles to see which opens/closes my X11 in Mac

My X11 opens and closes repeatedly. I can see only the following at my Dock Application not responding How can you find logFiles which tell me the application that opens/closes X11 continuously? ...

How can I draw automatic graphs using dot in Python on a Mac?

I am producing graphs in a Python program, and now I need to visualize them. I am using Tkinter as GUI to visualize all the other data, and I would like to have a small subwindow inside with the graph of the data. At the moment I have the data being represented in a .dot file. And then I keep graphviz open, which shows the graph. But th...

Which files shoud only be at Root?

My Mac saves my Vim's temporary files, my Scanner's log files and mach_kernel -files to my Root. I did not set this procedure up. I am at the moment removing files at my root, since many of them seem to be just swap files. I have the idea that only folders and system's symlinks should be at root. Which files should only be at Root? ...

How to cross compile for the PS3 from Mac OS X?

Has anyone done this before, and if so how do you setup the development environment? ...

Can Adobe Air be the best solution for a Mac and iPhone application?

We are at a crossroad as what development tool to use for our application. We do not know if we will go for Adobe Air or use the traditional road which is Objective-C and Cocoa. The software is similar to www.riffmasterpro in functionality. Is Air the best solution here? ...

Unable to have '0700'-protected programs startable at login in Zsh

I have the following code which should put programs startable in Bash. if [ "`uname`" = "Darwin" ]; then compctl -f -x 'p[2]' -s "`/bin/ls -d1 /Applications/*/*.app /Application:/*.app | sed 's|^.*/\([^/]*\)\.app.*|\\1|;s/ /\\\\ /g'`" -- open alias run='open -a' fi However, it does not work in my Zsh at all. I ...