osx

Using Caps Lock as Esc on a Mac

How do I make Caps Lock work like Esc on a Mac? ...

Why can't I install DBD::mysql so I can use it with Maatkit?

I'm trying to install Maatkit following the maatkit instructions. I can't get past having to install DBD::mysql. "Warning: prerequisite DBD::mysql 1 not found." When I try to install DBD::mysql from cpan, I get very helpful "make had returned bad status, install seems impossible". Perl is "v5.8.8 built for darwin-thread-multi-2level", ...

Php debugging with Aptana Studio and Xdebug or Zend debugger on OS X

Have you managed to get Aptana Studio debugging to work? I tried following this, but I don't see "Windows -> Preferences -> Aptana -> Editors -> PHP -> PHP Interpreters" in my menu (I have PHP plugin installed) and any attempt to set up the servers menu gives me "socket error" when I try to debug. Xdebug is installed, confirmed through p...

Make OSX application respond to first mouse click when not focused

Normal OSX applications eat the first mouse click when not focused to first focus the application. Then future clicks are processed by the application. iTunes play/pause button and Finder behave differently, the first click is acted on even when not focused. I am looking for a way to force an existing application (Remote Desktop Conne...

<ProjectName.ProjectUI sucks as a name for my Netbeans java OS X app.

What property in Netbeans to I need to change to set the name of my java swing app in the OS X menubar and dock? I found info.plist, but changing @PROJECTNAMEASIDENTIFIEER@ in multiple keys here had no effect. Thanks, hating netbeans. ...

Cross-model relationships in NSManagedObjectModel from merged models?

Is it possible to model relationships between entities that are defined in separate NSManagedObjectModels if the entities are always used within an NSManagedObjectModel that is created by merging the relevant models? For example, say model 1 defines an entity Foo with relationship (one-to-one) toBar and that model 2 defines an entity Ba...

What are some good resources for learning Objective-C?

I've been using Objective-C for about 6 months, and have a good grasp on the basic concepts. What are some resources (websites, PDFs, Books, Blogs, etc) to advance past this level? ...

32 vs 64 bits... what's the big deal?

Why is it considered to be such a big deal to have a 64-bit computer? Why does it "change everything?" Why do applications need to be designed differently between 32- and 64-bit platforms? And, on OS X, how do you find which one you have!? ...

How do I set a task to run every so often?

How do I have a script run every, say 30 minutes? I assume there are different ways for different OSs. I'm using OS X. ...

Applescriptable mySQL client - low cost or free?

Can anyone recommend a MySQL front end client or OS X that is AppleScriptable? Preferably low cost or free. ...

Setting environment variables in OS X?

What is the proper way to modify environment variables like PATH in OS X? I've looked on google a little bit and found 3 different files to edit: /etc/paths ~/.profile ~/.tcshrc I don't even have some of these, and I'm pretty sure that .tcshrc is wrong, since osx uses bash now. Anybody have any idea where these variables, especially...

Put a process in a sandbox where it can do least harm

I'm looking for the concept to spawn a process such that: it has only access to certain libraries/APIs it cannot acess the file system or only specific parts it can do least harm should malicious code run in it This concept is known as sandbox or jail. It is required to do this for each major Operating system (Windows, MacOSX and Li...

Where can I find tools for learning assembler on OS X?

I'd like to learn assembler. However, there are very few resources for doing assembler with OS X. Is there anyone out there who has programmed in assembly on a Mac? Where did you learn? And, is there any reason I shouldn't be doing assembly? Do I risk (significantly) crashing my computer irreparably? ...

HTTP communication monitoring on OS X

What application do you use to monitor HTTP communication on OS X? ...

How to set OS X Terminal's default home?

For some reason after I installed Boot Camp, my os x terminal started to point to the Boot Camp drive instead of my os x home directory by default! Once in the terminal I know how to switch back an forth and am able to do that, but I was wondering how to make my terminal default back to my os x home folder? I've checked my Home Director...

Adding custom log locations to the OS X console application...

After searching online, the best solution I've found so far is to just make a symbolic link in either "/Library/logs/" or "~/Library/logs/" to get it to show up in the Console application. I'm wondering if it would be possible to add a new directory or log file to the "root" level directly under the "LOG FILES" section in the console. ...

.gdbinit config file conflict with Xcode debugging

I've a fairly huge .gdbinit (hence not copied here) in my home directory. Now if I want to debug code inside Xcode I get this error: Failed to load debugging library at: /Developer/Applications/Xcode.app/Contents/PlugIns/GDBMIDebugging.xcplugin/Contents/Resources/PBGDBIntrospectionSupport.A.dylib Custom data formatters are disabled....

how to set a menubar icon on mac osx using wx

I could not find any pointers on how to create a menubar icon on OSX using wx. I originally thought that the wxTaskBarIcon class would do, but it actually creates an icon on the Dock. On Windows, wxTaskBarIcon creates a Systray icon and associated menu, and I would think that on mac osx it would create a menubar icon, I guess not. ...

What are those little Xcode tips & tricks you wish you knew about 2 years ago?

With a huge influx of newbies to Xcode I'm sure there are lots of Xcode tips and tricks to be shared. What are yours? ...

How do I get the resolution of the main monitor in Mac OS X in C++?

I have a graphical app that needs to test the resolution of the display it is starting up on in Mac OS X to ensure it is not larger than the resolution. This is done before the window itself is initialized. If there is more than one display, it needs to be the primary display. This is the display that hardware accelerated (OpenGL) a...