osx

MAC OS X: MAMP Environment & Virtual Hosts

I'm not sure what's happening here, but I'm running MAMP 1.9 on MAC OS X. In my httpd.conf file, the DocumentRoot is set to the default htdocs path. Within the htdocs folder, I've created a number of "subsites" in an effort to set them up as Virtual Hosts.... I can get to the paths specified, but they all seem to default to the first o...

Tabbing through an HTML form on OS X, any way to force it to stop on all form elements?

First question here, be gentle. :) In OS X, tabbing through an HTML form, you'll find that it only stops on text boxes and lists. I need it to stop on all form inputs (not strictly inputs, all form elements that collect data). As far as I'm aware this can only be configured in System Preferences under Keyboard Shortcuts, but obviously...

Defining Mac OS X workspaces with macros

When I'm at home I use an external monitor with my MBP; when I'm on the road I don't have access to this. I therefore have two separate workspace setups. Does anyone know of a macro or similar that would set these workspaces up for me? I waste quite a bit of time setting them up by hand. ...

DSP on MACOSX and iOS4

Hello, I am a beginning electrical engineer(Analog) trying to understand the essence of DSP techniques. Things that interest me right now is filter implementations, FFT analysis on real time audio in general. I recently bought a MAC mini(OSX10.4 snow leopard) and inherited a jail broken iphone from my wife. I thought i could leverage the...

Is there any hook to access the names of the functions being called at runtime in Xcode?

Is there any hook to access the names of the functions being called at runtime in Xcode? I'm just trying to log the names of all the functions that are called during the lifetime of the process. I have the necessary symbols for the application. I can do it easily in Visual Studio using _penter() and _pexit() functions. But can't find a...

Custom shortcut "control + /" gives a beep sound on MacBook (osx 10.6)

Hi I am using " control + / " as a keyboard shortcut for my browser extension. On Macbook (OSX 10.6) the shortcut works but always give a beep sound. On mac mini it works without a beep. What i am doing wrong? Is control+ reserved for operating system? should i try with "command + /" or something like that? "control + /" is not docum...

Accurate (Music-grade) Timing of Audio Playback

I'm attempting to write an app that can arrange timed playback of some (mostly tiny) audio files. The catch: it needs to be timed with accuracy worthy of music. The sounds won't be played frequently (it's not, for example, a sampler or a drum kit), but they will need to be absolutely precisely placed. There are two parts to this question...

On Mac OS X, how to create multi-touch event and send to another application?

I want to "simulate" a multi-touch event for another application, e.g., simulate a zoom-in gesture on iPhoto. I searched many sources but can't find an answer for that. It seems the most common way to sending an event to other application is with script bridge, getting a SBApplication and then send an AppleEvent. But it seems the genera...

What are these OSX buttons called, and how to make/use them in Qt

I have not done any work with Carbon/Cocoa, only Qt. I know Qt has excellent integration with various OS's, especially Mac in the last version (adding sheets, drawers, support for files attached to windows, and more), so I suspect it can do this, too. Here's the picture: If you can't see it, there are four buttons on a bar at the bott...

OS X: where to show tooltips for menu items

For Windows applications it is quite common to show verbose descriptions of menu items in the status bar if hovering over them. Where to show similar information in Mac applications? ...

Equivalents of XDG_CONFIG_HOME and XDG_DATA_HOME on Mac OS X?

I am planning to develop a cross-platform script. On Linux and other operating systems, it will store configuration in XDG_CONFIG_HOME and data files (specifically, downloaded plugins) in XDG_DATA_HOME. On Windows, it will use APPDATA for both (unless someone has a better idea). However, what would be the proper thing to do on Mac OS X? ...

[OS X Finder] Is there a way to programmatically connect to a remote server from Cocoa ?

Is there an Coca/obj-C API call to mimic the "Connect to Server" action in Finder? It's possible with Automater, so it seems like Finder has a hook somewhere. ...

On OS X, how do I find out what architecture a shared lib is compiled for?

I need to know whether I compiled libjpeg for 32 or 64 bits architecture, but don't know how to find out, is there a command that will let me check? ...

Create a simple form application to edit a textfile

I think I need to restate my question ... I want to create a SIMPLE form application that edits certain areas of one very specific text file. Though I have some web development experience, I do not want to create a browser based application. Basically I want to give a Desktop application a try and I am looking for some help to get star...

Bus error when using GLUT.

I am trying to create a GLUT application. Currently, I have this code: void init ( GLvoid ) // Create Some Everyday Functions { glShadeModel(GL_SMOOTH); // Enable Smooth Shading glClearColor(0.0f, 0.0f, 0.0f, 0.5f); // Black Background glClearDepth(1.0f); ...

Compiling Evolution e-mail client/PIM in Mac OS X?

Hello, Does anyone know how to compile and use the GNOME Evolution e-mail/PIM software under Mac OS X 10.6? Are there any known issues with this arrangement? If there is a step-by-step guide that would be great. Thanks!!! ...

SWT SystemTray in OSX

I'm trying to add a system tray icon to my Snow Leopard java application, which seems to work fairly well. Unfortunately, it seems like SWT does not align the systemtray icon with the top menubar, but instead aligns it with where my mouse clicked (e.g. http://kobyleha.com/files/azureus_2_250.png instead of http://kobyleha.com/files/pow...

How to write Portable C/C++/Objective-C++ code to target Apple iPhone/Mac OSX?

I'm working with some C/C++ code that runs on Win32 and also VxWorks. It uses #ifdef WIN32 to switch to platform specific implementations. I've been using the code on the iPhone and I want to update it and keep it as portable as possible, but I'm not sure what's the best practice. So far I've been using #ifdef __APPLE__ blocks. What ...

How to find a team to build an opensource project?

Hi! I would love to build an osx application this summer but I don't want to make it all by myself as I want it to be really cool. Is there a way to find opensource projects (maybe a forum?) to find motivated programmers? I have a lot of ideas for osx apps and maybe also iphone apps. I have experience, if you're interested in joining ...

Mouse coordinates

How can i get mouse coordinates in C under Mac? ...