osx

From MS .NET to Web development options on Mac OS X

I'm a .NET web developer, who's bought a Mac, and is interested in doing web development natively on the Mac. I've never developed outside of the Microsoft sandbox, and I'm looking for something new, but still in web development. I've looked into Mono, but it looks like trying to fit a square peg into a round hole, am I wrong? Like for...

Hitting breakpoints in MonoDevelop 2.2 Beta 1 on OSX

Hey guys Just installed MonoDevelop 2.2 Beta 1 on OSX Snow Leopard, and all is good. I created a new ASP.NET web project, and ran it. So far so good. But then I put a breakpoint in the code behind, and it didn't hit it...any ideas why? cheers ...

Equivalent of GetCursorPos() in Mac's Carbon

Background We're porting our PythonOgre-based games to Mac, and the publishers demand ability for mouse to leave the window. On Windows, we're going around OIS (Object-oriented Input System) for the purposes of mouse control; that is, we don't let OIS keep the mouse captured inside window borders, and then track the mouse cursor in scree...

Is it possible to develop Flex w/ ASP.NET projects on OSX via remote connection?

I recently completed a Flex app (using Flex Builder 3, PHP, and MySQL) on my Mac and now I want to write a very similar application to use on a client's ASP.NET site. Flex Builder apparently refuses to set up an ASP.NET project if there's no local IIS server (which I don't have). Is there a way I could develop the Flex app locally usin...

Installing mcrypt on Mac OSX (10.5) from PHP 5.2.8 source fails tests, what do I do?

So I'm trying to install mcrypt on my local for development. I've never compiled from source before, so please bear with me, but the short of what I've done is: Download and install libmcrypt-2.5.8 (from source) Download compiled mcrypt.so from http://www.viames.it/mac-os-x.html (note: the compiled gd.so seems to work fine) Update php....

Python MySQL installing wrongly on Mac OS X 10.6 i386

When trying to install MySQL's python bindings, MySQLdb, I followed the instructions to build and install on my MacBook running Mac OS X 10.6 i386, and after entering the following line into the terminal: user-152-3-158-79:MySQL-python-1.2.3c1 jianweigan$ sudo python setup.py build I get the following errors: running build running bu...

py2app dropping wxpython (Snow Leopard)

After upgrading to Snow Leopard, I'm having trouble building my application. It looks like py2app is building and copying over wxPython, but when I run from the buld app, it can't find wx. ...

How to burn an Audio CD programmatically in Mac OS X

All the info I can find about burning cd's is for Windows, or about full programs to burn cd's. I would however like to be able to burn an Audio CD directly from within my program. I don't mind using Cocoa or Carbon, or if there are no API's available to do this directly, using a command-line program that can use a wav/aiff file as inpu...

Mac OS X: Best way to implement a card game GUI

Hi, I've started programming on Mac OS X in Objective-C and decided to create a little card game. At first I create a command line version. If everything works fine I would like to implement a GUI: Nothing big, just a green window with cards which can be dragged and dropped. Since I don't have any idea about how to do this: What can I ...

How can I launch multiple instances of MonoDevelop on the Mac?

I would like to open a new MonoDevelop instance to work on a different project on the Mac, and the OS is currently preventing me from opening a new instance. ...

firefox extension don't have write permission on MAC OS X

I have a Firefox extension need to write to one files inside the extension's chrome folder, it works fine on windows and linux, but it give me 0x800520015 NS_ERROR_FILE_ACCESS_DENIED error. it is very strange, I manually set the file to have write permission, it works fine then. My question is where should I set something to tell MAC O...

How to hide Services item in QMenubar on Mac OS X?

In my Qt4 application I can't seem to hide certain options in the system Menu bar on OS X such as 'Services'. Any ideas? ...

How Should an OS X Drawing Programs Store Custom Data in its PDF PasteBoard Flavor?

A little history. In the days when the pre-eminent Mac vectored clipboard flavor was PICT, a program could insert its own data into the PICT. The PICT could be pasted into another application. At some later date, the same drawing could be selected and put on the clipboard, and pasted back into the originating program. The originating pro...

Java Mac OS X running with out a Dock Icon

i have a swing application that i would like to run on os x without a dock icon. Just a system tray icon. I know about headless but if i set that property i can not create JFrames. Is it possible to run a swing application without a dock icon in java? or through JNA if there is a native way. ...

Initialize window code Mac OS X

I'm currently reading "the red book" for learning OpenGL properly, and in one of the first examples, the author writes a line that says "InitializeAWindowPlease();" as a place holder for the code that will make a window to draw the OpenGL content in. Since I'm using Xcode for my programing, I know that I "get" a window to work with aut...

I already have PHP installed, what's the easiest (best) way to get GDLib installed?

I'm running a Mac Mini with Apache/PHP5/MySQL as my staging server. I'm building and using software that requires GDLib for manipulating graphics. How can I install this on my machine? Im not much of a CI guru but Im not scared of it. I just have no clue how to troubleshoot errors or problems when ./configure says file not installed at ...

How to check for COMMAND key held down Java/SWT at startup on Mac OS X

My app is cross-platform, hence why SWT is being used. I can easily monitor for the Mac Command/Flower key press when the app is running using SWT (they have SWT.COMMAND as a key press). I want to know how to see if the command key is being pressed and held down as the app opens. I found a few examples on here, but those were for caps ...

Recursive chmod in ruby on mac OS X?

I need to delete an application (MyApp.app), which has read only permissions in all its enclosed folders. Before I delete it, I should change the permissions on all enclosed files/directories to 0644. How do I do this recursively? I've tried begin; FileUtils.chmod(0644, '#{config.appPath}'); rescue; end begin; FileUtils.rm_r('#{config....

Getting Emacs to respect my default shell + options

I'm trying to get my Emacs shell to mimic that of my standard terminal sessions. Basically I would like it to respect the same PATH as well as the command prompt. So far I have a few issues: PATH isn't found, below is the fix I'm using for that. I'm getting ascii color codes all over the place with another fix I tried. I have the f...

Java cryptography library sporadically fails to start.

We have a Java web application that sporadically fails to find cryptographic libraries. Currently restarting the application fixes the issue. The following expections appear in the logs, see below for full stack trace. java.lang.InternalError: Could not start up the CDSA libraries. java.lang.NoClassDefFoundError: Could not initialize c...