mac

Enumerating USB drives and usb hierarchy on Mac OS

What is the best way to discover what USB drives are connected, where they are mounted, and their unique details like Serial number, PID and which USB Hub port they are connected to? Something similar to what USBlyzer does for Windows but programmatically. ...

Running a native program in Adobe AIR

I need to run a native program and retrieve the output in an Adobe AIR client side only application. I know that AIR does not allow access to native applications, so what is the best way to achieve this? I came across this solution which works on Windows, but I need something that works on Mac as well. I'd rather not have two separate so...

com.finder.desktopservices asks for admin password when copying files

Hi I am trying to copy files from my mac to a network drive. When copying the files, an empty file is created at the destination and I get a prompt saying I might have to enter an administrator password to change the file named "whatever my file name is". When I press continue, the password dialog shows it is com.apple.desktopservices w...

Is REALBasic worth $50?

As a Windows and web developer of 12+ years and an "at home" Mac user, I'm wondering if it's worth it to get the REALBasic for personal use. I've often wanted to dabble in development for OS X; I know VB, Java, C#, but not C, C++, or Objective-C. I don't have a specific project in mind and haven't been motivated to learn Objective-C, s...

Obtaining a Mac's System Profiler data from shell

How can I retrieve the information shown in the Mac's System Profiler app programatically? I'm actually interested in the USB section if that matters. ...

Macintosh C Creating a navigation window to choose an app

I'm writing a C program for mac, and I need to allow the user to choose an application to send an apple event to. I can create a navigation window, using NavCreateChooseFileDialog, but I can't get it to enable any .app files. If I restrict the types using NavDialogSetFilterTypeIdentifiers, it will only allow me to select applications lik...

Exposure Lock in iSight

I am creating object-detection program on Mac. I want to use iSight in manual exposure mode to improve detection quality. I tried iGlasses & QTKit Capture to do that and it worked but program runs very slowly and unstable. So I want to try other solution. In PhotoBooth.app, iSight seemed to be run in fixed exposure mode so there might ...

Learn C# on mac?

Is mono the only route , any specific visual studio like editors that you recommend? ...

SCM for Xcode?

I am developing an application for the Mac as a small team (me + another person) effort. We are located in different cities, and have started to see the need for solid source control management. None of us have any experience with this, and both of us are relatively new to Cocoa/Obj-C/Xcode (but do have C knowledge). Does anyone have a...

Making Mac shortcuts (e.g. Cmd-C) work on linux

Is there a way to map Cmd-C to Copy in linux? (instead of Ctrl-C) Would be nice if I could also have the emacs style ones, like Ctrl-B to move left by one character. ...

Mac OSX - Xcode/Leaks problem

I'm new to development using Xcode, and am having trouble using the built-in Leaks Instrument. I have enabled guard malloc and put MallocStackLogging YES & MallocStackLoggingNoCompact YES in the environmental variables for the executable. Then running the process by clicking Run->Start with performance tool->Leaks But only object al...

Open document with default application in Python

I need to be able to open a document using it's default application in Windows and Mac OS. Basically, I want to do the same thing that happens when you double click on the document icon in Explorer or Finder. What is the best way to do this in Python? ...

How can I get started with Apache, MySQL, and (PHP, Perl, Python) on a Mac?

What do you recommend for setting the MAMP development stack? I've seen the quickstart thing at http://www.mamp.info, but I don't really like that approach. I'd rather have a full-fledged Apache that I can install any number of modules into. I remember seeing in the Leopard Server demo a really slick GUI that allows you to setup all this...

What happened to Eclipse Web Services Explorer on Mac?

I've got Eclipse 3.4.1 running on Leopard 10.5.6 and I'm used to using the Web Services Explorer to open up a WSDL in Windows from Eclipse's run menu. I do not see it on my Mac (this is the first time I try it here). Am I missing something? I checked under plugin details and it shows that it is installed. Edit: Stupid question, sorry, j...

Why do Programmers Love/Hate Objective-C?

So I have noticed that there is a lot of animosity towards Objective-C among programmers. What's your take? Is it a vendor lock-in thing against Apple? General antipathy towards Apple? The syntax? What's your view on this? With the advent of the iPhone SDK, Obj-C has gotten a lot more attention lately, and I am curious what people on SO...

Install MySQL using MacPorts or Mac OS X binary package?

Is there any advantage in using one over the other? Should I use the vendor provided PKG file or use the Darwin Ports version? Is there a general rule of thumb for deciding how to install a package? ...

Is it possible to create autorun hybrid CD/DVD on Max OSX Tiger/Leopard?

Excuse me for not quite a programming question, but I need to burn a disc that would be autoplayed both on Windows and OSX. I read somewhere, that OSX disables autoplay feature by default (?) regarding to some security issues or wtf. However, posting the problem here in hope Stackoverflow knows how to hack / enable it. And yes, I know t...

Linking issue with indirect dependencies on Mac OS X

Hi all, we have some linking problems with indirect dependencies. Guessing from what I read on the web it may be because of two-level namespace usage. This happens when we link against a boost library, boost_filesystem to be precise, which itself depends on boost_system. The linker doesn't resolve the dependency between boost_filesystem ...

What programming languages are you using on Mac OS X ?

What are the programming languages you have used / are using now to write applications for Mac OS X? What kind of applications have you developed? ...

How do you create hybrid XCode projects for Mac & iPhone?

Hello, I'm working on a project which shall contain two targets. One for building a Framework to use in Mac development and another to create a static library to use in iPhone development. In the common code it's no problem to #ifdef between the platforms, but I just can't get the targets and dependencies right. The first question is, ...