osx

Compiling Gearman extension for PHP on OS-X Snow Leopard with Zend Server Community Edition

I was wondering if anyone else has figured out how to solve this problem. Whether I install the extension via PECL or compile it by hand, I get the same error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/gearman.so' - dlopen(/usr/local/zend/lib/php_extensions/gearman.so, 9): no suitable...

UI Sketching software for Mac

Is there any application for UI sketching on Mac OS X? Something like SketchFlow on Windows. ...

flash creates more than one http request

We are facing one issue directly connected with our Flash API we've given to a 3rd party flash vendor. To make a long story short, our API basically wraps domain logic on client and creates a single POST request towards the server in JSON format. All will be ok except in combination MacOS + Safari we receive double requests on server (?...

Add objects to NSDictionaryController

I have an NSTableView which is bound to an NSDictionaryController. I have set this and the content dictionary through the interface builder. The question I have is, how do I add objects to the dictionary in a manner that the controller will see it automatically and display it in the table. I've seen in examples about NSArrayController...

How to make a command-line tool executable in OS X?

I just finished writing my very first command-line tool in Objective-C, compiled it, and now I'm curious about how one would go about making it executable as a command. For example, right now to use the program I have to type in ./filename -args into Terminal. I'd like to be able to only type in filename and execute the program. I tri...

Can I start up terminal, make it open the python interactive shell and run a few python statements with the same command in os x?

I often do this to prepare for some django debugging: Open up a terminal window in os x (10.6) start the python interpreter run these commands in python: from django.core.management import setup_environ import settings setup_environ(settings) Is it possible to automate these actions and make a shortcut that I can doubleclick to in...

Implementing a kext that intercepts file system usage.

Hi, how do most of antivirus software block file system io in case of an infected file? I suppose all the magic resides in some custom kext to do that. Can anyone point me to some topics on this? Some working example would also be great. I've read apple docs about kext development, but mostly it's all about hardware drivers and i could n...

Accessing dock icon right-click menu items with AppleScript

Is there any way to get an AppleScript to access the menu items that come up when you right click on a dock icon? Specifically, here's what I want to do: I use Google Chrome as my web browser on MacOS X Snow Leopard. I am a keyboard shortcut addict, and I use QuickSilver to create keyboard shortcuts for anything I can. One of the mos...

Pass the body of an email to AppleScript

I have Mail set up to execute an AppleScript when it receives an email with the subject "AppleScript" and I was wondering how I could pass the body of this email to the script for execution. Thanks in advance! ...

Creating a NSView from a CGPath

I have a CGPath and I want to draw it once to a NSView. Seems relatively simple but I haven't found a way in AppKit (non iphone). ...

How to add OSX menu bar icon with wxPython

I would like to add an icon to the OSX menu bar at the top of the screen using wxPython. I have tried wx.TaskBarIcon, which adds a System Tray icon in Windows, but this doesn't work - it changes the Dock icon for the app instead. Does anyone know how to do this? ...

MonoDevelop/GTK OS X Usability Issues?

Does anyone else have infuriating usability issues while trying to work with MonoDevelop in OS X Snow Leopard? The ones that interrupt my flow the most are associated with button clicks not responding until I move the window around a little bit. Afterwards, I can get maybe one or two button presses in before I have to repeat moving the w...

Handling mach exceptions in 64bit OS X application

I have been able to register my own mach port to capture mach exceptions in my applications and it works beautifully when I target 32 bit. However when I target 64 bit, my exception handler catch_exception_raise() gets called but the array of exception codes that is passed to the handler are 32 bits wide. This is expected in a 32 bit bui...

Is there a shareware making app for Objective-C Desktop Mac apps

Hi guys, I was wondering if there were any libraries out there to allow Mac desktop developers on Objective-C to create shareware applications, similar to sharify for Air. Perhaps through use of Paypal etc. ...

Compilation errors for a c api

What would be the reason for the following errors though the syntax was right and I have included the coreservices framework in which some data type and constants are declared. " c.c:22: error: syntax error before ‘CFFileDescriptorRef’ c.c:22: warning: no semicolon at end of struct or union c.c:24: error: syntax error b...

Change language being spell-checked in Textmate

In OS X applications such as Mail and Firefox you can right click in a text field and change the language being spell-checked. I can't figure out how to do the same in Textmate. Can it be done easily, and if, how? ...

Cocoa Launch agent registering itself after installation.

I have created Cocoa app which is type of launch agent. To distribute this I have created package as well which installs the app and copies the launchagnet plist file in /Libraries/LaunchAgents. Now the problem is after installation i want this app to be running in user context immediately without logoff/restart. If I register this with...

Is there an equivalent of Mac OS X "open" command that can be called from C++/Objective-C code?

On Mac OS X there is a very useful "open" command which launches an application suitable for opened file type. Is there some C++/Objective-C function on Mac which does the same? Note: I know I could launch an "open" process. I'm just not sure if it's the best option. ...

can anyone run eclipse galileo on mac os 10.5.8

I am having a serious pain trying to run eclipse in mac os x 10.5.8. I tried every version carbon, cocoa, 32, 64 bit but nothing works i keep getting java.lang.NoClassDefFoundError` ... or ... An internal error occurred during: "Launching TestFooBasicTest". Could not initialize class com.ibm.icu.impl.JavaTimeZone error. ... ...

compile Boost as static Universal binary lib

I want to have a static Universal binary lib of Boost. (Preferable the latest stable version, that is 1.43.0, or newer.) I found many Google hits with similar problems and possible solutions. However, most of them seems outdated. Also none of them really worked. Right now, I am trying sudo ./bjam --toolset=darwin --link=static --threa...