osx

Eclipse Keyboard shortcuts in Mac OSX

I'm running Leopard and do all my Java development in eclipse. Some of the shortcuts work such as Command-1 which will do a quick suggest. However how do I get the Function Keys (F5 for refresh in the package explorer) to work? Right now it brings up spaces or whatever System Preferences maps to that. What about Control-click into a bre...

Quit All Applications using Applescript?

How would I quit all running user applications using Applescript? ...

How do I install MonoDevelop on my Mac?

I just downloaded MonoDevelop for my Mac, but I cannot figure out how to install it. Does anyone know exactly what to type in the terminal to get it to install? ...

How do I do date math in a bash script on OS X Leopard?

I realize I could whip up a little C or Ruby program to do this, but I want my script to have as few dependencies as possible. Given that caveat, how does one do date math in a bash script on OS X? I've seen a post (on another site) where someone did the following: date -d "-1 day" But this does not seem to work on OS X. Addendum: S...

Where is the code for "tee" in Mac OS?

Where is the code for the terminal command 'tee' located in Mac OS? [Added] Is it possible to read the exact code, that my mac is using (not the online codes)? ...

OS X Terminal: Meta key + alt functionality at the same time

Is there a way to use "alt/option" key as a meta key but still be able to use the key to make some characters which need it? For example in my local keyboard layout: @ is alt-2 \ is alt-shift-7 | is alt-7 etc. So if I set alt as meta key, I can't make those characters. On the other hand using "press esc, release esc, press a key" to...

How do I make an OS X application react when a file, picture, etc is dropped on its dock icon?

Some applications, like Photoshop, allow users to drag a picture from a web browser, or drag a file from the filesystem, onto the application's icon in the dock. Doing this opens the file in that application. How is this done? I'd like to use Cocoa and Objective-C, but I'm interested in any solutions in any languages. ...

disabling color correction in quartz 2d

Ok, I know that it's not possible to actually disable color correction in quartz. What I'm looking for is a device-independent color space setting that dosn't change the RGB values I draw in a CGLayer. I tried all the ICC profiles from the system library, they all shift the colors. This is the best result I got: const CGFloat whitePo...

environment path loading incorrectly in bash

I recently installed the Macports port of Ruby19 and it's changed my environment settings to point to opt/local in the first instance rather than usr/local where I have my standard 1.8.7 install. I've tried updating my ~/.profile by adding the usual export PATH etc. as the last line but to no avail. I have to run the .profile file each ...

Delphi on the Mac - possible?

I am responsible for a Delphi/Win32 project management application. I have just completed a move to Delphi 2009. More and more US based users want to use the application on their Mac computers, while the majority are Windows users. Are there solutions out there to easily build a Delphi app that will natively run on MacOS? ...

What is the hot key for 'content assist' in java editor for eclipse in mac?

What is the hot key for 'content assist' in java editor for eclipse in mac? It said '^ ' But can you please tell me what is '^ '? Thank you. ...

Direct access to keyboard events in OSX

I'm looking for application-wide access to raw keyboard events in OS X, either using the Cocoa or Carbon frameworks (or any of the underlying APIs, for that matter). I know that I can override NSApplication's sendEvent: to get raw keyboard information, but for the meta keys (command, control, alternate, shift, etc) don't show up as keys...

Is there a way to monitor heap usage in C++/MacOS?

Hello, I fear that some of my code is causing memory leaks, and I'm not sure about how to check it. Is there a tool or something for MacOS X? Thank you ...

Do NSShowAllViews and NSShowAllDrawing work with XCode 3, OS X 10.5.6 ?

I am trying to enable these debugging preferences (NSShowAllViews, NSShowAllDrawing) as shown here: http://developer.apple.com/technotes/tn2004/tn2124.html#SECAPPKITVIEWS using this method: http://developer.apple.com/technotes/tn2004/tn2124.html#FIGXCODEENV Are these features present in XCode 3 and OS X 10.5.6 ? ...

Differences between stock Apache on OS X 10.5 Leopard and OS X 10.5 Leopard Server?

Would someone with first-hand experience be able to tell me if there are any differences between the Apache installation that comes with OS X 10.5 Leopard and OS X 10.5 Leopard Server? ...

How do get a script to automatically run before saving a file in XCode?

I want XCode to run a particular script before any file is saved. Is there a way to do that? ...

Mac OS X: Where should I store save games for a game delivered as a bundle?

Hi, I'm porting a windows game to Mac OS X. I was wondering where I should store game data such as saved games, user profiles, etc and how I can retrieve that path programmatically in C++? The game will be delivered as a "modern bundle" as specified here ...

Accessing I/O Catalog Class Objects

Hi there, I'm developing an OS X kernel extension (kext) that will be used as an I/O Kit driver. This driver, however, will be strictly "virtual"; it will not interface with any hardware. OS X keeps a catalog (I/O Catalog) of all the drivers that are loaded into the kernel. It also keeps a registry (I/O Registry) containing the I/O Cat...

Eclipse project not built on Mac due to 'A resource exists with a different case' error

I am trying to following instructions to import android java source to eclipse on mac: http://source.android.com/using-eclipse I did create a new partition ('Mac OS Extended, case sensitive, journaled) on Mac. I was able to build android sdk successfully at command line. But when I try to create a new eclipse project and I get this er...

Additional Xcode Documentation Sets

Xcode's help system includes documentation for all the Cocoa and Carbon APIs. However, it would be nice to also have documentation for the standard C and C++ libraries, POSIX APIs, BSD system calls, etc., integrated into the same system. Are additional Xcode documentation sets available, or is there any way to integrate man pages or ot...