snow-leopard

how do i to make a window(osx) always hover on top of screen

hi, i trying to make a osx application that just have one window and it will always on the top of screen. anyone knows how to achieve it? thanks. ...

how do you get gcc (or llvm) to generate ARM code from the OSX command-line?

On OSX 10.6.4 with iPhone SDK and Xcode 3.2.1 installed: $ gcc foo.c -arch arm gcc-4.2: error trying to exec '/usr/bin/arm-apple-darwin10-gcc-4.2.1':execvp: No such file or directory ...

Setting up PHPUnit on OSX

Though I'm sure others have eventually managed to figure this out, I've been following the various documentation out there and have been having a heck of a rough time of it. http://www.phpunit.de/manual/current/en/installation.html Makes it sound pretty easy. However depending on your setup, you might be going down a rabbit hole. PEA...

Unable to connect to my Jabber server (EJABBERD) from console

Im working with Ejabberd on OS X 10.6, with rails. I am able to connect to my ejabberd server web console on port 5280 without problems and also connect to it using iChat jabber client. But i am unable to connect to it from the console and end with a u.connect results in RESOLVING: _xmpp-client._tcp.sid-laptop (SRV) CONNECTI...

New NSString substringWithRange: Error Message

I'm getting an interesting new error with iOS 4: -[NSCFString substringWithRange:]: Invalid range {11, 4294967295}; this will become an exception for apps linked on SnowLeopard. Warning shown once per app execution. The error is caused by a snippet of code I got from a blog post that helps Title Case a string, and it's not going to be ...

Can a process running a 32bit compiled binary use more than 4gb of memory?

Is it possible for a single process running a 32bit compiled version of python in Snow Leopard (64bit machine) to appear to consume > 4gb (say 5.4gb) of virtual memory as seen by the top command? I did a file ...python to see that the binary was not x86, yet it appeared to be consuming over 5gb of memory. My guess is that the librari...

mouseDown: event not recognized in NSImageView over subclass of NSView

Hi all, I am trying a simple drag and drop application. I have created a subview of NSView named: CameraIcon, which has an image view and certain text fields over it. In its mouseDown: method, I am initiating drag operation, I have also given a NSLog in it, so that I can notice in debugger when it is clicked. Problem is: when I ...

how to assign static ip to vpn connection in snow leopard

I am connecting my mac to my office network through VPN connection. But even after assigning manual ip in advanced > tct-ip, it always gets dynamic ip. Any way to make it static. I don't use any clients for vpn. I just created a new type of connection in preferences. ...

Why does Applescript run in Script Editor, but error when saved as Application?

My applescript needs to detect its own filename, and the following runs fine on Snow Leopard (10.6) set my_name to name of me as string display dialog "Name: " & my_name It displays "Name: AppleScript Editor" when I run it from AppleScript Editor, and it displays "Name: NewTest" when I save it as an application called NewTest. When I...

Leopard and Snow Leopard not rendering Flash blend mode properly

Using Flash 8, does anyone know why Mac Leopard operating system can’t render the ‘screen’ blend mode on movieclips containing bitmaps? See the screenshots for how it looks on all other operating systems compared to Leopard (splashes remain black and white). The browser used is irrelevant to this issue. Has anyone else experienced this...

Mongrel cluster does not start on Snow Leopard

Hi, I fail to deploy my ruby (v1.8.7) rails (v2.3.5) application on Snow Leopard (10.6.3). After "cap deploy", the Mongrel-cluster (v1.1.5) fails to start up with the following output in mongrel.*.log: ** Daemonized, any open files are closed. Look at tmp/pids/mongrel.8000.pid and log/mongrel.8000.log for info. ** Starting Mongrel l...

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...

How to build a VST 3 plugin with OSX/XCode

I have seen the vst 2 question, but I want to program vst 3 plugins, please help me thank you. ...

Installing MYSQL on snow leopard problems

I am trying to install mysql on snow leopard and having some problems. I followed these steps in the hivelogic blog http://hivelogic.com/articles/compiling-mysql-on-snow-leopard all goes well but when i get to the final step i try to do mysql -uroot i get this -bash: mysql: command not found what am i doing wrong ...

OS X permission denied for /usr/local/lib

I'm looking for any advice/intuition/clues/answers on a permission issue that has been plaguing me ever since I switched over to a new Macbook pro. Here's the dilemma. Certain programs copy libraries under /usr/local/lib during install and upon running these programs I get a crash which I believe is related to permission restrictions to ...

ImageMagick - How to Build a 32-bit Mac version for MAMP?

This is a pretty straight-forward question: I have an older INTEL Mac (32-bit) and I need to build a 32-bit version of ImageMagick. I've seen some people playing around with options during the binary install, but I can't seem to find any reliable information about how to do this! NOTE: ImageMagick gives out a 64-bit version of the bina...

Program causes OSX (Snow Leopard 10.6.4) window server to spontaneously crash.

I have a program that uses OpenGL combined with Cocoa and Python using PyObjC. I've recently expanded on my menu making code to show menu selections for maps including map information. When using the new code, the window server will spontaneously crash at some random point (Not random but it appears that way). The new code uses nothing ...

Is using double faster than float?

Double values store higher precision and are double the size of a float, but are Intel CPUs optimized for floats? That is, are double operations just as fast or faster than float operations for +, -, *, and /? Does the answer change for 64-bit architectures? ...

Has anyone got Oracle Pro*C to work on OS X 10.6 using a non-Oracle user account.

I've successfully installed native Oracle on 10.6, and can successfully compile and execute the example Pro*C code using the 'oracle' account (i.e. the same OS user that the software was installed under). That was a fun job. It even works with clang. However, in our normal development environment, the source, build scripts, make files, ...

Using MS SQL Server on Snow Leopard Server with Coldfusion

I was wondering if it was possible or is there a way of using that all together on one machine without virtualization ...