osx

Building from the command line to produce a binary for Mac OS 10.5 (and 10.6)

I am referring to the following source: http://clpbar.sourceforge.net Build process is the standard: ./configure followed by make If I build on 10.5 I get a binary whose file contains: Mach-O executable i386 If I build on 10.6 I get a binary whose file contains: Mach-O 64-bit executable x86_64 How can I build from the command line on ...

How do I install a LaTeX .sty file on OSX?

I have a LaTeX project set up: tex/ - documents/ - some_file.tex - support/ - todonotes.sty where some_file.tex uses todonotes: \usepackage[colorinlistoftodos,textwidth=0.9\marginparwidth]{todonotes} But I get "LaTeX Error: File `todonotes.sty' not found" when I try to build the PDF in TextMate. How do I tell LaTex ...

How does one tell if there is an active network connection on OS X?

I want to provide my user with some meaningful error messages when network requests fail. On Windows I can call InternetGetConnectedState() to see if there is an active network connection. What is the OS X equivalent? Bonus points for example code if it's complex. ...

how to connect mysql workbench with mamp pro?

what is the fix to connect the mysql workbench tool with the mamp pro mysql db? ...

Virtualize mac client OS on OS X server

As a follow up to my previous question http://stackoverflow.com/questions/1366661/testing-on-different-version-of-mac-without-buying-osx-server-or-multiple-machine What application do you recommend to virtualize Max OS X Leopard/Snow Leopard client machines on an OS X Server installation? I want to run these in parallel like PC VMs and ...

What is everyone using for MySQL development on OS X?

What is everyone using for MySQL development on OS X? I have been using MySQL Workbench, but was wondering what fellow geeks are using? ...

setup an ftp server with mamp pro

I am currently using mamp pro on osx for local development and I want to mirror my mosso cloud setup as much as possible. has anyone setup an ftp server with their local installation of mamp pro using sites i.e. local.mydev.com through apache? hope everyone had a great holiday. ...

how to find keyboard in /dev on osx

On linux / ubuntu, the keyboard and mouse devices are found in /dev/input/by-path/ Where is the keyboard device mounted in osx? I added a usb keyboard, and no devices got added in /dev folder. Is it located somewhere else, or is it totally unaccessible? Thanks. Edit: I was able to get some info on the keyboard using libusb: 046d:c...

How can I use T4 templating with MonoDevelop 2.2 on OSX

I understand MonoDevelop supports MVC and uses an implementation of T4 to generate code. Is there a way to utilize T4 with my own templates? I am using MonoDevelop 2.2 Alpha (MonoTouch preview builds) on OSX Snow Leopard. Mono 2.4.2.3 is also installed (which is required for the MonoTouch preview builds). I have created a very simple...

Making a video player which takes instructions from a socket

I want to make a player which will play video files from local server and takes command to play stop and ff etc from a socket. I am able to make a player which uses QTKit framework, but when it comes to socket it did not load movie. I run the socket on another thread, and I also initialize QTMovie on the main thread but still it's not w...

What is stored in ~/Library/Caches/<my-app-bundle>/Cache.db ?

I'm really wondering what is stored in the mentioned path? A side question: May a developer use this path (at least the folder) to store his own temp data? ...

Java SWT app with transparent background on OSX - transparency issues

I have an SWT app that has been developed on win32 and is now being ported to OSX. Everything works smoothly except for some visual quirks and one annoying problem. The shell for this app is an image with rounded corners, so I'm using some code taken from one of the SWT snippets to create a shell with rounded corners. For some reason, w...

Determine if WindowServer is available?

I'm writing a framework for OS X that may be used by applications with or without a connection to the OS X WindowServer (i.e. both GUI apps and command-line apps run via, e.g. an ssh session). One class in the framework is for tracking files in the user's home folder across netework and mobile home directories (on OS X, users can have th...

Mysql Snow leopard issue

Just installed snow leopard and Xcode, i downloaded version 5.1.38 from the mysql website and installed it, then i ran sudo gem uninstall mysql and when i try to gem install mysql as below i get a documentation error, also when i try to run mysql by simply typing mysql into terminal i get -bash: mysql: command not found. When i try to co...

Gem update fails, no Xcode

I ran sudo gem update earlier today and was thrilled to see it work, but at the end it failed. Building native extensions. This could take a while... ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension. ruby extconf.rb update can't find header files for ruby. I don't ha...

Send Email - Cocoa

Hey, How would I be able to send emails using Cocoa? Which framework would I use, and how would I use it. This is very new to me so please go easy. Best Regards, Kevin ...

How does multitouch capability look to the API? (IPhone/OS X)

I don't have an IPhone and don't really want to pay $130 a month for a cell phone. (I leave mine in the car most of the time, sometimes the entire weekend.) But I covet the technology as a mobile computing platform. (Cruel Fate.) One of the things I like about it the most is the multitouch capability. How does it look from an API st...

How do I execute a PHP shell script as an Automator action on Mac OS X

Hi, I'm tempted by Automator.app's ability to create contextual services in Mac OS X Snow Leopard. I would like to create some keyboard accessible shortcuts to manipulate text snippets by calling a shell script. However, Automator only suggests bash, Perl, Python and Ruby (among others) to allow this. But, since PHP also ships with Mac ...

Applescript to print Word documents

Is there a way to print all of the Microsoft Word documents (.doc) in a folder using AppleScript? ...

Getting involved with the Mac developer community

I'm getting started in developing Mac software and would like to get some support from fellow developers. So my question is this, where can I ask questions and get involved in the mac developer community online? (I already know about the Apple Development Forums) ...