← back to the blog
fousa tag
Current tag: tag
2009
Problem installing MySQL gem on 64bit machine // 1 comment
When I wanted to use MySQL with Ruby on Rails I always got an error when I tried to install the mysql gem. Maybe the reason was because I was working on a 64bit machine, and it was the first time I did! RESOLUTION So to resolve this problem I did the following. I removed all the mysql gems. > sudo gem uninstall mysql Nex...
Building multiple targets in Xcode // 5 comments
Sometimes you have to create multiple applications in one Xcode project. To demonstrate this I'll explain a bit how LazyPoken works. This is an application that includes a preference pane, a background script and a wrapper application that starts the script. So in this case we need three different targets. HOWTO Creating a new target is ea...
Start/stop a running process started from NSTask
When you start a script with NSTask, you can only end that script in the current session of your application (when you still have the NSTask object). There is nothing foreseen in Objective-C to stop a running process without having an NSTask object. But I found a nice framework that allows you to go through a list of running (background) proc...
Add your application to Apple's login items
For our LazyPoken app we needed the ability to start the script when a user logs on. The cleanest way to do this was adding an application wrapper, that runs the script, to the login items. You can find your personal login items in the preference pane under the accounts section. Normally all this has to be done with Core Foundation code b...
Building a preference pane with XCode // 2 comments
I always found it hard to setup a preference pane for my application. so I figured out how to do this, and wrote a small tutorial! When you create a preference pane, don't forget to keep the design conform with the Apple Human Interface Guidelines. You can find these guidelines in the Apple Online Documentation. CODING First thing you need...