osx

installing MySQLdb for Python 2.6 on OSX

I am trying to install MySQLdb for Python 2.6 as per these instructions: http://www.tutorialspoint.com/python/python_database_access.htm When I get to this step: $ python setup.py build I get the error: users-MacBook-Pro:MySQL-python-1.2.3 user$ sudo python setup.py build sh: mysql_config: command not found Traceback (most recent call...

How to check if the current operating system is Windows, Linux, or OSX?

I'm writing a compiler project which will produce assembly code as the target language. However, there are some small changes that need to be accounted for depending on the operating system, and I'm not sure how to check for the OS. In case it matters, I am concerned with only 32bit. I've seen in some source code something like #ifdef W...

RAD tool for Mac OS X. Is there any ?

I wonder if there is any RAD tool for Mac OS X. Something like Delphi for Windows. ...

How do you write a menu bar app in OS X

I want something similar to the gmail notifier. The app will need check a web page periodically and send notifications to growl. ...

Given a UTI (Uniform Type Identifier), find all types to which it conforms.

I am writing an application that makes use of Uniform Type Identifiers. Specifically, I am calling UTTypeCreateAllIdentifiersForTag() and passing it various MIME types. My hope was that this function (as distinct from UTTypeCreatePreferredIdentifierForTag()) would give me the most specific UTI as well as all the UTIs to which it conform...

structure of apple help

I have inherited a mac app that needs some fixing and I have trouble with help on Snow Leopard. Today the help is structured as: App/Contents/Resources/LANG.lproj/Help I have trouble when trying to load non-English help pages, it always loads the English version on Snow Leopard. I believe Mac OS thinks there are two help books in the...

iODBC does not work under Mac OSX 10.6.4

I've installed iODBC over the package (http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/) and set up all config files as described here: http://blog.opensteam.net/past/2009/1/28/rails_ms_sql_on_mac/ I set up the same thing on a Linux machine and it worked fine. On my Mac OSX 10.6.4, I get this error if i test the connection: xxx@xxx:/op...

Ruby on Rails - Locomotive for version 2.3.8 -- is there such a thing?

I am looking for a piece of software that will allow me to use Ruby on Rails 2.3.8 on top of MACOSX - basically, I teach at a college where students are not able to get terminal acccess to the rails built into OSX so I am looking for a piece of software like "Locomotive" that is an app that allows students to use rails without administra...

How long does it typically take for software to be approved to Apple's OS X downloads?

Please don't flame me if this is a duplicate question... I already searched both Google and stackoverflow to no avail. I submitted my first desktop shareware application to http://www.apple.com/downloads/macosx/. I'm familiar with the iPhone review time, but have no clue as to the timeframe that it takes for desktop apps to show up on ...

TERM environment variable not set on mac

I keep on getting the "TERM environment variable not set." error when I work with svn commands on my Mac terminal. I thought I had set up my profile by doing: export SVN_EDITOR=/usr/bin/nano export EDITOR=/usr/bin/nano in .profile and .bash_profile, reset the terminal and it still gives me that error. Any help? ...

make an osx preference panel with section

I need to make a preference panel with section like this. but what is the exactly compoment has effect like these (section I means "General,Accounts,RSS...") ...

Getting screen resolutions & position/offsets from OSX

Hi, I'm trying to read the resolutions & positions of currently connected screen. Eg, if I had 2 screens connected, I may get information like... Screen 1, 1920*1080, x:0, y:0 Screen 2, 1280*1024, x:1920, y:0 From my own bumbling research, I think /Library/Preferences/com.apple.windowserver.plist may have what I'm looking for, but it ...

Simulate key press events for ioquake3 in Mac OSX

Hi, I am currently writing an application which simulates key press events in Mac OSX to control ioquake3. My current approach is to create the key press events with the Quartz Event Services. This works fine with e.g. TextEdit but not with ioquake3. CGKeyCode keyCode = 126; // 126 is the "up" key CGEventRef event1 = CGEventCreateKeybo...

OSX Port Python Library Path? Cant find ctypes

I am trying to use an application that has a dependency of ctypes, but am getting this error: $ python peach.py -t ~/Desktop/fuzz/wav/template.xml ] Peach 2.3.6 Runtime ] Copyright (c) Michael Eddington Traceback (most recent call last): File "peach.py", line 335, in <module> from Peach.Engine import * File "/opt/Peach-2.3.6/...

How much do experienced Cocoa programmers rely on Interface Builder for wiring up their apps?

In IB one can instantiate controllers, build up references to UI elements, and define action targets. It is also possible to do that programmatically. I wonder what (most) seasoned Cocoa developers prefer? In many other environments, I would not bother too long with interface builders (lower case), but the Apple tools are clearly a clas...

Subclassing NSSlider: Need a workaround for missing mouse up events (Cocoa OSX)

I am trying to subclass NSSlider to create a control called a jog dial. Basically what I need is a slider which always starts at the middle and when it is moved to the left or right it will send notifications every so often (determined by an attribute one can set) informing its container of its current value, then when you let you go of...

Equivalent to gconf on OSX

Is there something equivalent (and available by default) to gconf on OSX? ...

SQLite FTS3 installation, unable to create virtual table after installation

I a bit new to sqllite lite and linux commands so any help would be greatly appreciated! Is there something I am missing? After the sqlite-3.7.3 installation, for some reason I am still still not seeing the new version (sqlite-3.7.3) when checking with macbook-pro:sqlite-3.7.3 scott$ which sqlite3 /usr/bin/sqlite3 macbook-pro:sqli...

Is there a virt-manager alternative for Mac OS X ?

Hi, Here at work, we use a virtual infrastructure. We use virt-manager a lot, but I'm on a Mac and can't get it to work. Is there a way to make it work or an alternative ? Thanks, ...

Sending the intValue message to a NSNumber causes a "Bad Access" error

I'm trying to get the integer value of an NSNumber initialized with a float and I was expecting that intValue handle the conversion (as the docs say). #import <Foundation/Foundation.h> #import "Fraction.h" #import "Complex.h" #import "ComplexMathOps.h" int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutore...