mac

Starting SQL Dev on Mac?

As I've never created an SQL database outside of University, I'd really like to get a bit of experience. At this moment in time I use a Mac and I've googled round but can't find any decent links. At the moment I have the mySQL Query Browser / Administrator, which I use for work when I bring my laptop in. However what additional softwa...

CGContextDrawImage leak

I have a custom view that draws an CGImage using: - (void) drawImage { CGContextRef context = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort]; CGRect imageRect = {{0,0}, {CGImageGetWidth(image), CGImageGetHeight(image)}}; CGContextDrawImage(context, imageRect, image); } It looks like the memory used by the ...

2 mysql instances in MAC

i recently switched to mac. first and foremost i installed xampp. then for django-python-mysql connectivity, i "somehow" ended up installing a seperate MySQL. now the seperate mysql installation is active all the time and the Xampp one doesnt switch on unless i kill the other one. what i wanted to know is it possible to make xampp work ...

How use Instruments and display the console in Command Lines applications

Hi, I'm using Xcode on OSX to develop command line C applications. I would also like to use Instruments to profile and find memory leaks. However, I couldn't find a way to display the console when launching the application from within Instruments. I'm also unable to attach to a running command line process (it exits with an error): He...

Setting Python Interpreter in Eclipse (Mac)

How do I direct Eclipse to the Python interpreter on my Mac? I've looked in Library which contains the directory 'Python' then '2.3' and '2.5', however they contain nothing except 'Site-packages' - Which is weird considering I can go into the terminal and type python. I then installed the latest 2.6 version with package manager and stil...

Native Python Editor for Mac?

I'm currently using IDLE, its decent, but I'd like to know if there're better lightweight IDEs built especially for Mac — free or commercial. ...

Eclipse - Mac Os Default JRE missing

The list of installed JRE's is empty, when I click "add" the only options I'm given are - Execution Environment Description, Standard 1.1.x VM, Standard VM. There's no option for a MacOS Default JRE and choosing standard VM results in the usual "Standard VM not supported on MacOS". Eclipse Galileo, Mac OS X 10.5.8. Any suggestions muc...

libtiff.3.dylib: unknown required load command 0x80000022

Has anyone found a fix for this? I read that it has something to do with new dylib format in Snow Leopard... (This is the lib I get back from MacPorts.) Thanks, rui ...

Java Random Slowdowns on Mac OS cont'd

I asked this question a few weeks ago, but I'm still having the problem and I have some new hints. The original question is here: http://stackoverflow.com/questions/1651887/java-random-slowdowns-on-mac-os Basically, I have a java application that splits a job into independent pieces and runs them in separate threads. The threads have...

Python and iPhone development on Mac - minimum/recommended hardware ?

What is the minimum configuration to do some Python and iPhone development on Mac ? Platform wise: Mac Mini, Mac Pro, Mac Book, Mac Book Pro ? Memory requirement CPU speed Thanks for your advice. Laurent ...

Good C IDE for Mac?

I've just started a job where I'm programming in C on a Mac, which is my first experience using a Mac for development. For now I'm using XCode as my editor, then using make/gcc/svn at the command line for compiling and source control. Is there a good, full featured IDE out there for Macs that will compile C code (something comparable to...

How to control the text color of an NSTextField when it is displaying a placeholder marker?

When the NSTextField (Label) is bound to a controller selection with bindings, and I have specified placeholder values for the Multiple Values Marker, No Selection Marker, etc it draws the text with a gray color that does not show up well on a dark background. Is there a way to change the text color it uses to display the placeholder te...

iTunes Plugin Programming: Intercept Events

Are there any good solutions for capturing events from within iTunes? I'd like to build a plugin that sits inside of iTunes and respondes to rating changes for particular songs. For Windows they have an SDK that I haven't delved into yet, but I'd like to find something for Mac too. Any suggestions? ...

Syncing Rails development environments on my two computers

So far I have been building my Rail app on a Mac OS X box using TextMate. It's just me, so I haven't used Git. I have just opened and closed the code in the file system, used an AppleScript to take annotated snapshots at key moments, and let Time Machine take care of the rest. I've just ordered a Windows laptop which I'll use for the s...

Thread Safety Of Custom Sequential CGDataProvider

When creating a custom sequential CGDataProvder to render a custom image format you specify the CGDataProviderSequentialCallbacks that should be used. While doing some optimization work to improve the speed of my sequential CGDataProvider I started to wonder about the thread safety of those callbacks. Let's assume I have created a si...

std::locale breakage on MacOS 10.6 with LANG=en_US.UTF-8

I have a C++ application that I am porting to MacOSX (specifically, 10.6). The app makes heavy use of the C++ standard library and boost. I recently observed some breakage in the app that I'm having difficulty understanding. Basically, the boost filesystem library throws a runtime exception when the program runs. With a bit of debugging...

NSPopupButton, updates depending on another NSPopupButton

Hi all, I wish to make a city/country selector using 2 NSPopupButtons. One popup button will contain the first part e.g. UK, and the second one will contain the second part e.g. London So the whole city/country combo will read: UK London however, I want the second part to be updated when the first part is selected, e.g. if London is sel...

How to tell whether a dylib is compiled for 10.6 or 10.5?

I was trying to use otool but I couldn't find a way to do it. Basically I'd like to know whether a dylib is compiled only for 10.6 or if it supports 10.5. Thanks, Rui ...

Alternative paradigm for Mac OS X development

The current standard way of developing Mac OS X apps is with XCode/Objective-C/Interface Builder using the MVC paradigm. Is there an alternative? I'd like to use Interface Builder (XCode too) however I would rather use a different programming language. I come from .NET programming where you can delegate a click to a certain function, ...

Is there an ORM framework for Cocoa, or a framework that accomplishes a similar goal using a different technique?

I'm developing an application that needs to store lots of records in an organized way. Specifically, I'm writing a personal finance app. As you can imagine, this app will contain records of financial transactions that must be sorted in various ways: by date, by amounts, by recipient, by account, etc. And of course, the app will need to q...