osx

Compiling for older versions of Mac OS X

I have recently started producing applications for the Mac, on my most recent release I got overwhelming suggestions to get the app working on OSX 10.5 as I'm working in and compiling for 10.6. I tried looking for the 10.5 SDK but couldn't find it anywhere to download! How can I go about compiling my app for older versions of Mac OS X u...

Mac dashboard widgets not loading external images

I set out to make a quick Mac OS X dashboard widget. I read the documentation and was pleased to find out they use simple HTML, JS, and CSS. I created my widget and it works when I open the .html file in Firefox, but it does not work when I install the widget to the dashboard. The widget is simple: it displays the most recent image from...

How do I change apache2 DocumentRoot (default snow leopard install) and not get "You don't have permission to access / on this server."

I'm trying to point DocumentRoot at a directory in my user folder. While I can happily point DocumentRoot at /Library/WebServer/Documents and ~/Sites I keep getting "You don't have permission to access / on this server." when I point it anywhere else. OK, I just found a solution mid-question (stack overflow is just that good) by changin...

error when installing mysql ruby gem on OSX 10.6.3

So I am getting the same issue as mentioned here - http://stackoverflow.com/questions/1366746/gem-install-mysql-failure-in-snow-leopard But I haven't been able to get it fixed using the answers on this link. Here's a brief history - I had MAMP on my machine, but now I downloaded the latest MySQL from mysql.com and installed version 5...

Passenger: "Missing these required gems redgreen"

Hello, total ruby newbie, trying to setup a Rails/MongoDB application on Mac OS X Snow leopard. Installed Ruby 1.9.1 and RubyGems 1.3.7, which ruby and which gem point to the same directory. I'm using the Snow Leopard built-in apache and Passenger 2.2.11. I'm using the rails template from the mongo-site which seems to work okay overall...

Publishing to Amazon S3 with Espresso

I've been looking around to get some clarity on this but it seems like I'm the only stupid one having a problem with it. Case is, I can't connect to Amazon S3 with Espresso. Or I think the case is rather that I don't know how to. I mean, I have my username, access key and secret key. Espresso asks for the username and password. So which...

Anyone get mach_inject working on snow leopard?

Project is now on github and here is the link to my issue I successfully compiled the whole thing and able to run rejector and rejectee separately. But the injector will crash the injectee when injecting code to the target process. mach_inject_test_injectee.app 's standard output: mach error on bundle load (os/kern) successful mach err...

High level process of extracting images from a container

Right, this is the problem I have a container (rar,zip) which contains images png's tiffs bmps or jpegs in an order. The file extension isnt zip or rar though but uses the same compression. I want to pull out a list of images contained within the file in the numerical order, then depending on the user decision go to the image selected....

SQL Server Management Studio Replacement

Can anyone suggest a non java replacement for SQL Server Management Studio for OSX? I currently use Parallels in Crystal mode and run SSMS, but it seems like there should be something better. ...

Getting the size of an opening window in WebKit

Hi, I'm implementing a "WebKit Browser In An Application" which basically embeds WebViews in Qt widgets (we're using the WebKit browser instead of Qt's since it's stabler and more up-to-date). So far everything's great, until someone clicks on a link which invokes a Javascript "Window.open" function with a custom width and height for ...

Changing the text of the cancel button of an NSOpenPanel (Cocoa OSX)

I would like to have a customizable chooser where many features may be customized. One thing I cannot figure out how to do is change the text of the cancel button. I found that the method setPrompt will change the text of the okay button but I can find no similar method for the cancel button, is there such a method? ...

How do I compile python extensions for Mac OS X 10.5, on Mac OS X 10.6?

I'm trying to compile a variety of python extensions (pycrypto, paramiko, subvertpy...) on Mac OS X 10.6, such that they will be compatible with Mac OS X 10.5 and its built-in python 2.5, for including in a product installer targetted at Mac OS X 10.5. I'm really not sure how to go about this. I dug around on Google and found a question...

How do I switch keyboard layout programmatically in MacOS X?

Hi all, how do I switch keyboard layout (AKA input source) programmatically in MacOS X in a Cocoa/Objective C program? Thanks in advance. ...

SunTlsRsaPremasterSecret KeyGenerator not available

Hi, I encountered an error when my application tries to load a RSA Algorithm provider class from JAVA. The exception stack is as follow: javax.jms.JMSException: RSA premaster secret error at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49) at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQC...

gdb+osx: redirecting stdout may cause printf to have a 2**14 bytes buffer?

I attached to a program with gdb in OSX and I want to use CFShow in the gdb console etc. However, nothing shows up. printf shows nothing as well: (gdb) call (int) printf("Hello\n") $10 = 6 (gdb) call (int) printf("Hello World!\n") $11 = 13 Apple suggests the following tip for when attaching with gdb, to make the output appear in the g...

Should I learn a operating system specific language or something like Java?

I am torn. I want to start making applications for OS X. There is a specifically under-served market that I would like to tap but I don't know if I should develop it only for the mac with Cocoa and Objective C or if I should develop it with Java and JavaFX. I guess my question is, is Java robust enough to handle the same things as Objec...

Did the OS X java update to 1.5u7 whack my 1.6.0 laf.jar?

This is the update that just came out this week (2010-05-18) Somebody moved my cheese. It appears that laf.jar is Look And Feel, so probably not a big deal for my java development. Eclipse got mad about the missing jar, and furthermore thinks the 1.6.0 VM disappeared, which it didn't. Had to redefine the VM library within eclipse and ...

Filemaker Pro 9 (Mac) : How do I get it to deal with absolute paths?

I have an installation where FM Pro 9 clients open a solution from an FM Server 9. This solution then needs to access files on a network share from the clients. So far, the network share was mounted with AFP, but an infrastructure change required it to be switched to static NFS mounts. Their boot Volumes may have different names, but t...

“MySQL server has gone away” error happens for every user other than root

I can't get any MySQL user other than root to work; even anonymous fails. I can log in anonymously or using other user I create, but any command entered under that user causes error 2006: mysql> show databases; ERROR 2006 (HY000): MySQL server has gone away No connection. Trying to reconnect... Connection id: 25 Current da...

Pointers to good reference on writing AppleScriptable Cocoa project?

I've got an Objective-C program that I need to make AppleScriptable. I've looked through the Apple references and they're all at exactly the wrong level, either for the applescripter, or too high level, or too low level. Can anyone point me at a good resource for getting started on this? or perhaps a sample project I can poke at? than...