osx

Finder Plugin in Snow Leopard

Hi, Since the Finder in Snow Leopard has been rewritten to use Cocoa instead of Carbon, I'd like to know if there's a new API to write Finder plugins. The old way involved writing a CFPlugin but this doesn't seem to work anymore. ...

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

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

Is there a better way to serialize plist-y objects in Objective-C?

I like the plist serialization capability for small collections of objects: it is simple, the storage is XML, etc. But I find setting values in dictionaries cumbersome: [myDict setObject:keepThis forKey:@"ivar"]; I'd much prefer to use object derived of classes (or even just structs): myObj.ivar = keepThis ... and then send a messa...

Using client side certificates with objective-c under macosx with Cocoa

I am looking for sample code or documentation on how to use client side certificates with SSL under MacOSX. The server I want to connect to, does speak a custom ascii protocol but allows only ssl connections with registered client certificates. I already wrote a client in Java that works. In Java I initialized a SSLContext with a Ke...

Setting up OS X for Android development. OR Are *nix environments intentionally prohibitive?

I'm trying to start doing Android development on OS X (trying is the key here). I've read all the fun stuff at http://developer.android.com/sdk/index.html. I get the basics, install the JDK, Eclipse, the Android SDK, the Eclipse plugin and ADT. That's a lot to do but I get the point of each step, so, OK, fine. Then there are a millio...

How can I activate Vim color schemes in OS X's Terminal?

I'm working with the Vim 7.2 that comes with Mac OS 10.6.1 (Leopard), using the Mac's "Terminal" app. I'd like to use a fancy color scheme. I did this... :syntax on Then this... :colorscheme slate :colorscheme elflord :colorscheme desert etc... Syntax highlighting is working, but I'm finding that regardless of the scheme I choos...

Why does Rails think I have RubyGems 1.0.1 when I have v1.3.5?

I made a change to my shell profile and now when I try to run the Rails console on a Rails app I created, I get this message: Loading development environment (Rails 2.3.4) Rails requires RubyGems >= 1.3.2 (you have 1.0.1). Please `gem update --system` and try again. However, when I run gem -v the output is 1.3.5. What happened here, ...

JMenuBar at the top in MacOSX

In the Java Desktop Application template used by Netbeans, a menu bar is created with JMenuBar and JMenuItems. How can I get that bar displayed at the top, where menu bars are displayed in MacOSX instead of in-window, like in Windows? ...

Run an OS X universal binary in 32-bit mode

I have a third-party library (the interface to Xerox's Finite State tools) which come as universal binaries with two variants internally: a PPC and an i386 variant. I also have a Python interface to the library (which uses ctypes). But when I try to run the example code provided with the Python interface I get an error complaining about...

Mac OS X - associate application with file type icon

I want to make it that for a certain file type, the icon is dynamically generated by my app. For example, photos appear as thumbnails in the Finder - I want .myapp files to appear as special, per-file generated icons in the Finder. How can I do this? ...

Querying the connecting device for usb devices in OS X

Ok, so here's the setup. In OS X (>= 10.5), is it possible, given a mounted usb device with a known location, say /Volumes/FLASHDRIVE, to find out whether this device is connecting through another usb device (a card reader for example) and if so, which one. Ideally, this could all be done in python, but if not that's ok too. ...

How to download xcode - iphone os entire reference library?

Open X code. Go to help menu / or press command + shift + / Select documentation option. Now a help window will be opened. In this help window, on the left side there are many options like - iphone os 2.1 subscribe, iphone os 2.2 subscribe, iphone os 3.0 subscribe, xcode reference subscribe ( something look like this ) If we press iph...

I am not getting text macro completion in latest xcode (3.2.1)

I recently upgraded my machine from Leopard to Snow Leopard. Also I installed the latest Xcode 3.2.1 for Snow Leopard. Currently I am not getting code completion for built-in macros. For example 'if' followed by ESC gives completion list with #IF and ifstream. However I can insert it from menu Edit>Insert Text macro>C>If Block. Any he...

setven in launchd.conf on mac

Hello good people This is my first real development with the mac os(OS X 10.5.8).I got a macbookpro from work and i'm still setting up the right development environment.I've opted for the creation of /etc/launchd.conf and it's working fine for most of my librairies (JAVA_HOME, JRE_HOME) i now need to add CATALINA_OPTS=-Duser.timezone=Asi...

How do I get the full path for a filename command-line argument?

I've found lots of libraries to help with parsing command-line arguments, but none of them seem to deal with handling filenames. If I receive something like "../foo" on the command line, how do I figure out the full path to the file? ...

tomcat startup script permission on mac os x

hello people i'm struggling with a mac os x 10.5.8 that i've started using recently for development.i successfully installed tomcat and create launchd.conf for my environment variables.i believe it works fine.coz i can build a project with netbeans using maven and cargo plugins succesfully so i found online a script for start and stop t...

Windows-like Qt4 Menubar in Mac Os X.

I would like my application to look similar to that of the Windows version: instead of the menu being displaced to the top menu in Os X, I'd like my program to have the file menu right on top of the application itself. I've looked at the Qt documentation regarding this, but I can't seem to create an empty QMenuBar as the top level QMenu...

How to custom draw window title bar in Objective-C?

I'd like to customize the way I draw the window title bar on OS X. Specifically, I'd like to do something like the Twitterrific app where there is a custom close button, no min/max buttons, and the window title text is right-justified. Unlike Twitterrific, I'm not looking to custom draw the entire window (though I'm not completely oppose...

MOD_WSGI difficulties on Mac OS X Snow Leopard

I've been trying to get MOD_WSGI working on Apache via XAMPP on my Mac OS X Snow Leopard all day today without any success. I've followed all the instructions, searched the internet for solutions, etc but no luck so far. Below are my exact steps and details. When I run localhost all I get is a white screen. When I remove "LoadModule wsgi...