mac

How to auto-start an application after system boot up in Mac os

Hi I have created a sample java swing application Mac os. Now I want whenever I will start my computer then my java application will start automatically. Thanks Sunil Kumar Sahoo ...

Developing Google Gadget on a Mac

I have developed some Mac Widgets and want to port them to Google Gadgets. The technology is pretty similar (please disabuse me if this is not the case) but it looks like i need to download and use the Google Gadgets to speed things up which means i have to use Windows. Is there a way of running it on the Mac. Basecamp? Or is it easy eno...

copying a list of files via terminal

I have a list of filenames called list.txt. I would like to copy the files in this list to a new folder. How should I go about doing this? Thanks! ...

How to create drag and drop DMG file, Mac installer

Hi I have created an aplication myprogram.app file. Now I want to create Drag and drop DMG file for that application. Skype and other software does the same thing. How to create Drag and Drop DMG file foe my application. Thanks Sunil Kumar Sahoo ...

What does the console error 'Unable to clear quarantine' mean?

I'm making an OS X Installer package. I download it from a build machine onto a test machine (10.5.8) and then run it. In the console, the following message is immediately logged: kernel[0]: Finder[52646] Unable to clear quarantine '<package name>': 30 From what I've read, Leopard sets a quarantine extended attribute on all downloade...

USB / Bluetooth API for iPhone?

Hi Is there a Mac OS X Bluetooth or USB API that's easy to work with (specifically if you want to be able to access a connected iPhone and send/receive information)? Thanks. ...

How to compile for Mac OS X 10.5

Hi everyone, I'd like to compile my application for version 10.5 and forward. Ever since I upgraded to Snow Leopard and installed the latest XCode, gcc defaults to 10.6. I've tried -isysroot /Developer/SDKs/MacOSX10.5.sdk but that doesn't seem to work. Is there a GCC flag that allows me to set the SDK? (Incidentally, I changed the gcc ...

Use libpng static lib in ImageMagick/GraphicsMagick

Hi everyone, I'd like to compile a executable that contains imagemagick and it's delegate libraries like libpng to ease distribution. I easily compile imagemagick into my app but it always seems to use the dynamic libs. I installed both dynamic and static delegate libs using macports. Is there a way to tell ImageMagick to use the stati...

Bluetooth on Lazarus/FreePascal on Mac OS X

Has anyone used Bluetooth on Mac OS X with Lazarus or FreePascal? There is a bluetooth unit, but it currently only supports Linux. Information about existing unit: http://wiki.freepascal.org/Bluetooth I plan to enhance this to support Mac OS, but it would be nice to know if anyone has written any code to use BlueTooth on Mac OS alread...

Apache problem on Mac

I couldn't visit 127.0.0.1 on my mac . I turned on the "web share" already. and there is no "httpd" process in Activity Monitor ...

how to launch x programs running in mac ox from cygwin running on windows-

Hi everybody, running cygwin on windows I can connect and execute X applications with no further problems just accessing the remote linux box as ssh -Y -l user machine. If I do the same against a mac box and try to open ie. firefox as: open -a firefox returns the following: LSOpenURLsWithRole() failed for the application /Applications/Fi...

Connection Failed when Deploying with Capistrano in Snow Leopard

I'm trying to deploy a PHP project using Capistrano. When I try to do a cap deploy, I get an error: wes:/var/www/nipponpulse [svn:] → cap deploy * executing `deploy' ** transaction: start * executing `deploy:update_code' executing locally: "svn info https://newcitymedia.svn.beanstalkapp.com/nippon_pulse/expressionengine -rHEAD...

Accented/umlauted characters in C?

I'm just learning about C and got an assignment where we have to translate plain text into morse code and back. (I am mostly familiar with Java so bear with me on the terms I use). To do this, I have an array with the strings for all letters. char *letters[] = { ".- ", "-... ", "-.-. ", "-.. ", ".", "..-." etc I wrote a function for ...

Is there a way to hook in to OSX sleep/wake events via Applescript?

The problem I am trying to solve is quite simple. When I open the lid of my MacBook I like to have the Dock on the left side of the screen, but when I get home and connect my MacBook to my Cinema display and set up dual monitors, I want the dock on the bottom of the Cinema, not on the left side of the MacBook. I don’t want to have to g...

Scrolling inside Vim in Mac's Terminal

I've been googling around trying to figure out if it's possible to use my mouse wheel to scroll while inside Vim in Mac's Terminal, with no luck. It seems as if only X11 or iTerm support this. Before I give up, I thought I'd try the geniuses here to see if anyone knows a way to do this. So, does anyone know if I can set that up? Or sho...

Mimicking Smart folders

Hi, I am new to mac programming. I have a small task to do. I need to watch for file creation events in a folder, intercept them, and create symbolic links instead of a copy. ANy idea if there is any source code to do so or any api i should use? ...

How to clear the IntelliJ project index?

I've run into trouble that makes me suspect there is a bad index file that needs to be cleared. The symptoms are: Cmd+N will only find a subset of classes in the project Trying to run JUnit test on a package won't find the test classes in that package. Before suspecting a bad index I reinstalled IntelliJ 8.1.3, then I removed and re-...

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do this like so: int main() { char* str = "Hej du kalleåäö"; printf("length of str: %d", strlen(str)); for (int i = 0; i < strlen(...

How to properly compile C++ UDFs on Snow Leopard for MySQL

I am trying to install a Levenshtein UDF for MySQL but I am having a ton of problems, I think mainly because of the lack of documentation for Macs. The specific UDF I am using is this one: http://joshdrew.com/mysql%5Flevenshtein%5Fudf-1.0.tar.gz and is done in C++. So far, I have gotten successful compilation using: g++ -Wall -bundle -...

Remote Desktop between a mac and ubuntu

Hi i am using linux - ubuntu. is there any way as remote desktop connection "to mac system" please explain as if to a child. Thanks! ...