mac

Linking to a dynamic library on a Mac with full path

I am linking a (Python extension) library that embeds the Matlab engine with the following command (generated using cmake) c++ -mmacosx-version-min=10.6 -bundle -headerpad_max_install_names -o library.so library.o /Applications/MATLAB_R2009b.app/bin/maci64/libeng.dylib /Applications/MATLAB_R2009b.app/bin/maci64/libmx.dylib -framework P...

Is there an free alternative to MAMP PRO?

NetBeans is recommending to use MAMP for Apache + MySQL + PHP on the Mac. There's a MAMP and a MAMP PRO. The MAMP is actually nothing more than a collection of open source libraries and stuff like PHP, MySQL, etc. in one big directory that goes to /Application/MAMP/. It comes with a little GUI to start/stop the server and to do some very...

In writing games that deal with scancodes, what do I need to know to support international keyboards on Mac and PC?

I am writing an input system for a game that needs to be able to handle keyboard schemes that are not just qwerty. In designing the system, I must take into consideration: Two types of input: standard shooter controls (lots of buttons being pressed and raw samples collected) and flight sim controls (the button's label is what the user...

how can i send a keyboard event to the app through pressing a button?

in fact i am building a virtual keyboard how can i send a keyboard event to the program through pressing a button? thanks ...

How to Wrap a Commad Line Executable In a .app Package?

I wrote an OpenGL+GLUT game for Mac OS X that's currently launched through the command line. I'd like to make opening the game more user-friendly by putting it into a .app package, so regular users would be able to open the game like any other program. What's the best way to do this? ...

How to start Mac OS X password screen

I am building an application in Mac OS X which should bring up the password screen in Mac OS X once when a button on a QT WIndow is clicked. Which API I should use for this? Also, how will my application get notified whether system is locked or not? Thanks in advance. ...

Rails ActionMailer problems on Mac

I've been working on learning to use Rails the last couple days and I've run into something that I haven't been able to solve with Google. So I'm just creating a basic contact form that sends an email. Everything seems to be working ok in testing, which tells me that the form is working, and ActionMailer was implemented correctly, howev...

MAC OSX, which version of MySQL should I download?

I have a MAC OSX 10.6, intel 64 bit, I'm looking at the mySQL download options at http://dev.mysql.com/downloads/mysql/5.1.html#macosx There are no download options for 10.6, do you think the 10.5 downloads below will work? Mac OS X 10.5 (x86) Mac OS X 10.5 (x86_64) Cheers ...

what is the scheduling algorithm followed in mac os ?

what is the scheduling algorithm followed in mac os ? where can i find the relevant document. did a google search but didnt get any useful resource .. Thanks ...

Reachability sample code

I am using Reachability sample code from Apple site. I have added Reachability.h and Reachability.m files to my project, also I have added SystemConfiguration.framework. Added #import "Reachability.h" to my view controller .m file and declared reachability variable in my view controller .h file. Everything compiles without errors until I...

Help needed with F_NOCACHE in mac

Hello Everybody, I am Srinivasa Raghavan and new to this group. I am facing problem with non caching the file. the code looks like the below: main() { int fd; char buf[512] = {'\0'}; fd = fopen("Sample.bin",O_RDONLY); fcntl(fd, F_NOCACHE, 1); fcntl(fd, F_RDAHEAD, 1); read(fd, buf, sizeof(buf)); close(fd);...

Compiling SDL Games on Mac

I have a mac and I am trying to compile my projects. The standard on the wiki: g++ sdl.cpp -lSDLmain -lSDL -framework Cocoa does not seem to be working it returns that it cannot find -lSDL and -lSDLmain. Any help would be greatly appreciated. ...

Mac/Django error message: "/mercurial/osutil.so: no appropriate 64-bit architecture"

I'm new to Macs (and quite new to Django) and I'm setting up an existing Django/MySQL site that uses Mercurial as a site package, on a new Macbook Pro. All was going well during installation - no error messages. I installed the default versions of most packages from macports. However when I try runserver, localhost shows the followin...

Embed webserver in carbon bundle

I need to embed a tiny webserver in a compiled jsfl external library for Adobe Flash CS4 so that an outside process can communicate with it. The external library will be a Carbon bundle on Mac and a set of dlls on Windows, so the webserver will need to be embedded/loaded from C/C++ code with no external dependencies like Ruby. Most of t...

Getting a List of Applications Capable of Opening a Type of File

I'm trying to get a list of applications that are capable of opening a type of file. So far I've been able to get the name of a single application using NSWorkspace's getInfoForFile:application:type: method. Is there any API that I can call to get a list of applications capable of opening a file? ...

Posixy way to launch browser?

Is there a 'Posixy' way to open an URL, preferrably in the default browser? I would like to do something like ShellExecute(0, _T("open"), url, 0, 0, SW_SHOWDEFAULT); that works on GNU/Linux and MAC. I read some answer saying that` if (fork() == 0) system("sensible-browser http://wherever.com"); does the trick on Debian systems ...

How do you design an interface with a list of varying width elements?

I want the interface to look something like the right side of the Things interface but the items in the list need to be of different widths. Is this achievable with the Interface Builder or do I have to use drawing? I'd like as detailed an explanation as possible. Thanks! Like this : ...

windows to mac via bonjour

Hello, We have an issue with Bonjour on Windows. Our requirement is to transfer files from one machine to another with our app which uses Bonjour. While the transfer has been working just fine between Mac to Mac, it doesn't between a Mac and a Windows machine. Please note that there is no issue in the discovery of Windows Machine (which...

Which eclipse version to use on a Mac? (Carbon or Cocoa)

When i go to the eclipse website (http://www.eclipse.org/downloads/) there are 3 different versions of eclipse for Mac: Carbon 32bit Cocoa 32bit Cocoa 64bit I'm confused about why there are three version and which one i should be using. (I'm running OSX 10.5 on a MBP) ...

SQLite 'no such table' error

Hi, I'm noob here but, why is it i'm getting this error? I DO have a table named Team in an SQLite called Team.sqlite! Is there anything else I need to provide? ERROR --------------- 2009-12-23 23:17:05.277 PitScout[6690:207] *** Assertion failure in -[Team addTeam], /Users/******/Desktop/PitScout/Classes/Team.m:90 2009-12-23 23:17:0...