mac

C/C++ Resources To Develop Using MetroWerks C/C++

Hello, My friend have real Macintosh IIci, that uses Mac System 7.5.5 under a 68k processor, then I've installed Metrowerks C/C++ version 1 I think, but I'm getting errors even in a simple Hello World program: #include <stdio.h> int main(void) { printf("Hello, World!"); return 0; } I'm getting this error: ·· Link Error : Li...

IOUSBDeviceInterface CreateInterfaceIterator does not return all interfaces

Hello, I've ran into a problem when CreateInterfaceIterator does not return all interfaces for the device. When I open "USB Prober" it says there are 9 interfaces, but displays 14 of then counting Interface #1 - Vendor-specific Interface #1 - Vendor-specific (#1) as one interface. The problem is that CreateInterfaceIte...

CakePHP: Can't access MySQL database

I'm new to CakePHP and am just running through the configuration process, but am stumped why Cake can't access my MySQL database. The Cake info page says my tmp directory is writable, the FileEngine is being used for caching (don't know what this means), and my database configuration file is present, but that CakePHP cannot connect to th...

Use NSSpeechRecognizer or alternative with audio file instead of microphone input?

Is it possible to use the NSSpeechRecognizer with an pre-recorded audio file instead of direct microphone input? Or is there any other speech-to-text framework for Objective-C/Cocoa available? Added: Rather than using voice at the machine that is running the application external devices (e.g. iPhone) could be used for sending just an ...

Does Mac OS X have a better installation story than Windows?

I'm a Windows developer... I know nothing about Apple Mac OS X. In Windows one uses Windows Installer to install packages.. For historical reasons, installation is not an easy thing in Windows. I was wondering what is the OS X story? Just curious. ...

Best location for html files to be served up by custom web server

I have written a mini web-server which needs to serve up a few static html files in addition to performing its own custom processing. Could you suggest a reasonable location on the file system where I should store these files, for both Linux and Mac OSX (they need a dedicated directory that I can chroot to). ...

Mac Text Editor that Support SSH Keys

I have a workmate who only uses a Mac. Being unfamiliar with Mac text editors, I'm wondering if anyone can recommend one that will allow SFTP access using ssh keys (not just passwords). ...

Resources Of Macintosh Development

Hello, As I said in older questions, we(I and my friend) are trying to develop in a Macintosh IIci(System 7.5.5 68k processor), but we don't know where to start, then I'm asking here for some resources to develop on it. Thanks. ...

Terminal Command Mac Alter table SQLite3...

What is the terminal command, or where is a good resource to get them, to alter a table. And, do I need to re run the $rake db:migrate after I do this? I am running RoR on Snow Leopard. Last question, can I make an already created column non-null. UPDATE: figured out how to alter, just need to know if I need to rake db:migrate after a...

How to get boost wdirectory_iterator to return UTF32 on the Mac

directory_iterator returns UTF8 using both Visual Studio and Xcode as expected. wdirectory_iterator, however, returns UTF16 using Visual Studio, and UTF8 using Xcode, despite returning a wchar_t string. What can I change to get wdirectory_iterator to return UTF32? An answer to a question I asked previously suggests that changing the l...

wrong results for clock() on 64 bit

Hi all, I've got a simple benchmarking function using the C clock() function. start[timerId]=clock(); clock_t end; float dif_sec; end=clock(); dif_sec=((float)end-start[timerId])/CLOCKS_PER_SEC; printf("%s: %f seconds\n", msg, dif_sec); It's running fine in 32 bits on Mac OS X, but when I compile in 64 bits, the results are all wrong...

Vector drawing tool for iPhone development

This isn't strictly a programming question, but I'm asking it here because it's certainly a software development question, if you take "software development" to include all aspects of creating a software system. I am an independent iPhone developer. Except for translations, I handle all aspects of my apps myself—graphics included. I h...

Undefined symbols compiling apache module mod_transform on Mac OS X

I'm trying to compile mod_transform on Mac OS X 10.6, but get an ld error while running make. Thanks to diciu I have added some CFLAGS which resolve most of the linking problems, but I still am unable to get the apreq2 linking to work $ CFLAGS="-lxml2 -lxslt -L/opt/local/lib -lapreq2" ./configure --with-apr=/opt/local/bin/apr-1-config ...

Printing a file to NSImage not working right (cocoa)

This is probably a n00b question so I apologize in advance. I'm working with NSImage for the first time and basically I need to simply take a picture that is in my Resources folder, and have it display in an NSView/NSImageWell when a button is clicked. NSImage *image = [[NSImage alloc] initWithContentsOfFile:@"tiles.PNG"]; if ( [ima...

Is there any way to make a dual executable file for Mac/Windows?

I'm looking for a way to make a dual executable file for Windows/Mac. That is, I can execute the file in either OS and it would run some piece of code that I want for that OS. This code can be either a script or (preferably) natively compiled code, but it needs to run on the vanilla OS without needing any extra tools or libraries insta...

ICL, OS X.4/5 and Unix compliance ($UNIX2003)

Hi all, I'm trying to compile a Mac version of our lib for a customer that wants to include it in a Photoshop plugin, and he is having trouble linking our lib into his app. More detailed info: His plugin is built against the CS4 Photoshop SDK, which means the Mac OS base SDK should be 10.4. My lib is a static one, compiled with the Inte...

Java Random Slowdowns on Mac OS

I have a Java program for doing a set of scientific calculations across multiple processors by breaking it into pieces and running each piece in a different thread. The problem is trivially partitionable so there's no contention or communication between the threads. The only common data they access are some shared static caches that don...

can't start mysql on mac OS X getting mysql.sock connection error

I'm trying to get mysql running on my mac. I used macports for the initial install but can't get past this mysql socket error. Note: macports appends the version number to commands if they look odd below. Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' I get this error when: mysqladmin5 -u ro...

Change Screen Resolution in Snow Leopard

I've been plugging away at this for a few hours now, and haven't found a good answer. In Leopard, I can programmatically change the screen resolution using Quartz Display Services with CGConfigureDisplayMode. Unfortunately, this has been deprecated in 10.6. This seems like a simple task: how can I change the screen resolution with non-d...

Install PyObjC on Python 2.6 on OS X 10.5?

OS X 10.5.8 came with Python 2.5, and had PyObjC already installed. I installed Python 2.6 from the python.org site, and PyObjC isn't there. I can't find a download to install PyObjC on my Python 2.6 install. Is checking out the PyObjC trunk and trying to build it my only choice? Will that work "out of the box"? ...