mac

Errors Installing PIL on Mac OS Tiger

I'm trying to install the Python Imaging Library on Mac OS X 10.4, but I get errors. I'm not sure where the error starts, it's just a huge wall of text when executing sudo python setup.py install. But the last few lines are: ... collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccNKvQpP.out (No such file or di...

Sharing config settings between 2 cocoa apps

I am new to cocoa development and want to create a little app. For that app I need a background worker that is running all the time and a prefpane-app that gives the user the opportunity to change the settings for that background worker. The gui for the prefpane is ready, the background worker is ready, too. One of the few missing thing...

XCode : Is there an easy way to automatically move/copy files on-disk to match the project heirarchy?

Pretty much exactly what the topic says : I've got a project that's grown to several hundred files and the on-disk directory structure is rather ugly. Is there a way to have it automatically shuffle files around and create a directory structure based on my internal groups rather without breaking everything? ...

Textmate tab and de-tab selected block

Recently switched to Textmate on Mac for coding. On PC when ever I want to tab in or out a block of code I just highlight and press tab or shift+tab to move it in our out. It's very useful when you are adding an extra loop or conditional statement to a block of code to keep everything tidy and neatly indented. On Textmate however when...

Where is python freeze utility

I just installed python 2.6 on my mac, mainly because I couldn't find freeze in my 2.5 distribution. I am wondering where freeze is. Is it even installed at all in the mac distribution? ...

I would like to run my Java program on System Startup on Mac OS/Windows. How can I do this?

Here is what I came up with. It works but I was wondering if there is something more elegant. Thank you! Misha /* Copyright (c) 2010 Misha Koshelev. All Rights Reserved. * * TODO: * - Add Linux support */ package com.mksoft.common; import java.io.BufferedReader; import java.io.File; import java.io.FileWriter; import java.io.InputS...

Ruby, Rails & MySQL parity between Mac Client (10.6) & XServe (10.5)

We're setting up RoR with Development on Mac OS X Client (10.6.3) and then using a Mac OS X Server (10.5.8) for testing and eventually deployment. I'd like to get as many systems in sync on these machines as possible. Wondering if there are any pitfalls. I mostly understand what's necessary under Client but Server has some hard-wired st...

Google Maps API and "rightclick" events on Macs

Note: This question is only based on Firefox. It may or may not apply to other browsers. Using the Google Maps API (v3), I can create a map and handle normal click events just fine, but when I want to handle rightclick events, it doesn't work on Macs. So, my question is how can you detect "rightclick" events from Macs with the Google ...

Which PHP IDE would you use on Windows, if you're used to TextMate on the Mac?

Until now, most of my PHP development had been done on a Mac in TextMate. For a new client I need to work on a secured windows box, and I was wondering which IDEs I should be looking at, as someone used to working with TextMate. I've tried the 'E' editor, and I'm unconvinced. I've tried IDEs on the Mac, and they always seem like poor rel...

Qt on Mac: where to find "configure"

hi, I am very new to Mac. I downloaded QT SDK Mac Open source (http://get.qt.nokia.com/qtsdk/qt-sdk-mac-opensource-2010.02.dmg) and installed the Package. I can run qmake, build samples and run demos, but I cannot run configure (in order to build the Qt libraries statically). It says: -bash: No such file or directory. Documentation say...

MacPorts - Installing Port, Dependencies Failed

I am attempting to install xulrunner on OSX 10.6.3 using the following: sudo port install xulrunner However, I am receiving the following error: nat-10-200-136-126:phoneyc-new $ sudo port install xulrunner ---> Computing dependencies for xulrunner ---> Activating zlib @1.2.5_0 Error: The following dependencies failed to build: gcon...

How to make a file invisible in Finder using objective-c

I need to hide the file in finder as well as in spotlight if possible using objective-c or using C calls. Thanks ...

Padding is invalid and cannot be removed

I have hosted an asp.net 2.0 site. Everyday, i am getting an error "Padding is invalid and cannot be removed" 2-3 times. Backend used is sql server 2005. the site is controlled via plesk 9.2 CP. Pooling is enabled with timeout as 120 Minutes, in IIS. Can it be the reason for this? I have not used any encryption except for the stored p...

Mac equivalent for CryptProtectData and CryptUnProtectData

I need mac (carbon) equivalent for CryptProtectData and CryptUnProtectData. Please refrain from suggesting a cocoa solution with "move to cocoa" since that's not an option. ...

Git index resets itself

Every so often when I run git add . to add new files to my repo my git index will reset and think all the files in the repo have been deleted. I run these commands: git status git add . git status git commit -a -m "Commit message" everything looks fine at all those points until I commit and it says every file was deleted, all I have t...

Creating a window with attributes on Mac with NewCWindow

I want to create a window on Mac with kWindowCompositingAttribute. Windows in my code are using NewCWindow (and not CreateNewWindow) (legacy code). Before I jump on to CreateNewWindow, I wanted to check if there is some way to enable this attribute using NewCWindow(). ...

What would be the best way to install (distribute) dynamic libraries in Mac OSX using CMake/Cpack ?

Hello all, I have a project whose artifacts are two dynamic libraries, let's say libX.dylib and libY.dylib (or .so for linux distributions). There are no executables. Now I would like to distribute these libraries. Since I already use CMake to compile it, I looked at CPack and successfully generated .tgz and .deb packages for Linux. ...

MacOSX - File extension associate with application - Programatically

I'm trying to get my program to automatically associate certain file extensions to be opened by it but I'm not sure how to do that in MacOSX. I'm not asking how to associate a program with a file extension in the GUI, I want to be able to program it into my program. ...

What does "NSBinarySearchingFirstEqual = (1UL << 8)" mean in an enumeration definition?

I saw this in NSArray.h header file in the framework directory: enum { NSBinarySearchingFirstEqual = (1UL << 8), NSBinarySearchingLastEqual = (1UL << 9), NSBinarySearchingInsertionIndex = (1UL << 10), }; typedef NSUInteger NSBinarySearchingOptions; What's the point of "NSBinarySearchingFirstEqual = (1UL << 8)"?And what's t...

How to detect right-click event for Mac OS

Hi all, For windows and linux I am able to detect right click. But for mac I donot know how to detect right-click. How to write java program to detect right click for Mac OS Thanks Sunil KUmar Sahoo ...