mac

How to properly set Firefox as External Web Browser of Eclipse on Mac OS X

The default setting "/Applications/Firefox.app/Contents/MacOS/firefox-bin" tries to start a new instance of Firefox every time, which is refused blatantly by Firefox if there is already one. Then I tried to use the "open" magic and set it to: Name: Firefox Location: /usr/bin/open Parameters: -a /Applications/Firefox.app %URL% which s...

What development notepad should I use?

I need recommendations for a good (free) development notepad to work in on my new macbook, mainly for PHP, AJAX etc. ...

How do I draw an NSString at an angle?

Is there a set of string attributes I can specify that will draw the text at an angle when I call: [label drawAtPoint:textStart withAttributes:attributes]; ...

Unable to make Firefox open Ack's output

I aim to have a list of lines where I use the word NB in my notes. Pseudo-code open -a Firefox `ack -a NB` However, I cannot make Firefox to understand parameters from terminal. The output of Ack is a text-file, so it should be somehow redirected to Firefox. I run unsuccessfully open "http://`ack -a NB`" I get in Firefox's addre...

Create Softlink With Custom icon on the Mac

I want to create a softlink to a file that doesn't exist (using ln -s ...). In Finder, this appears with a blank-page icon because I believe it tries to find the target, which doesn't exist, and hence can't pull a real icon. Is there any way using Finder I can have this link show as non-blank? ...

Java: How do I catalog Java API documents using Quicksilver?

This one is for Java programmers on Mac. How do I catalog Java API documents using Quicksilver? Wouldn't it be nice if you could lookup API documents with a few key strokes? ...

What is the equivalent (if any) to the C++/Windows SendMessage() on the Mac?

Is there an equivalent function to SendMessage in the Mac OS? ...

Unique hardware ID in Mac OS X

Mac OS X development is a fairly new animal for me, and I'm in the process of porting over some software. For software licensing and registration I need to be able to generate some kind of hardware ID. It doesn't have to be anything fancy; Ethernet MAC address, hard drive serial, CPU serial, something like that. I've got it covered on W...

How does MacOS developer navigate large code base

Hi, I am new to MacOS development. I would like to know how developer navigate code in a large code base on MacOS? E.g. webkit? I have webkit (c++) built in XCode, but the source code navigate is not that great. I am looking for something like Java source code navigation in eclipse. e.g. display class hierarchy, e.g. caller of a parti...

OS X Keychain's Password Assistant feature via Terminal

OS X's Keychain has a Password Assistant feature that suggest passwords based on user criteria (e.g. Length = 18 and FIPS-181 compliant). I want to access this feature via bash. My specific interest is requesting generation of a password with my desired length and complexity attributes, then adding that password item to a specific keyc...

Can't see repo after "git svn clone <url>" on Mac Leopard

We use SVN here at the office and I'm experimenting with using git-svn for myself. I created a directory in /usr/local/code/git and did my checkout to /testco. I used the commands given in the man page, git svn clone , where is my repo. It goes through a few hundred lines of all the files in the SVN trunk, but when its done the direc...

Linux/Mac OS X equivalents for Windows Communication Foundation

--edit-- What application development frameworks/component models for Linux and Mac OS X are analogous to Windows Communication Foundation & COM, which provide high level IPC mechanisms for manipulating/communicating with software applications? By high level communication model I mean RPC, publish/subscribe, etc. I'm writing software ...

How can I script the creation of a movie from a set of images?

I managed to get a set of images loaded using Python. I'd like my script to take this series of images (in whatever format I need them), and create a video from them. The big limit in all this is that I am looking for something easy and simple to install. Ideally, using the standard OS X installation procedure: download .dmg click m...

Book recomendations for learning Cocoa programming?

Hopefully this is not considered "Not programming related"... I'm an experienced C/C++/Java programmer (Also many others, but not relevant) and I'm trying to program for a mac. I've tried learning things piecemeal by looking things up as I need them online. However, I've been finding that frustrating lately. So, I decided that I want a ...

Emacs 23, OS X, multi-tty and emacsclient

How can I get emacs 23 working nicely in multi-tty mode on OS X? I've added (server-start) to my .emacs, and have discovered that running /Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n ~/myfile.txt will open it in my emacs.app, but it doesn't bring emacs to the front. So, how can I get emacs.app to come to the front when I r...

Get file creation time with Python on Mac

Python's os.path.getctime on the Mac (and under Unix in general) does not give the date when a file was created but "the time of the last change" (according to the docs at least). On the other hand in the Finder I can see the real file creation time so this information is kept by HFS+. Do you have any suggestions on how to obtain the fi...

Python Opencv Ubuntu not creating Windows

I have a strange problem with opencv running on an Ubuntu. I installed OpenCV from the apt sources. And most of the Examples work fine. But in my programs, which are working with Mac OS, no windows are created. The following code is showing a window and an image in this on my Mac but not on my Ubuntu powered machine import time from o...

What's the best Mac custom disk image creation app?

I'm looking for a custom disk image creation app that I can integrate into the build process for my app (which means I need to be able to run it from the command line if possible). My desired features are that it will size the image for me, let me set the location of my icons when the image is opened, set a custom background/icon, etc. ...

where to find A mac virtual machine which i can run on windows to test my websites?

I want to test a website on mac, my client telling that there is something not working well on mac browsers. I have windows pc and don't know any friend near me has mac to test on it. Where i can find something like a virtual machine for mac to run mac from a pc. And if its not possible, do you have any smart idea to solve my problem ...

Using the PHP CLI with MAMP

Does MAMP come with the PHP CLI installed? I am trying to run a script from the command line, but using a Mac, with MAMP, and not knowing much about PHP CLI is making it difficult. How should I set up my environment so that I can use the PHP CLI with MAMP? ...