CocoaDev

Edit AllPages

Some simple code to see if an application is running after being notified that a new application has launched.


That seems a little un-Cocoa-like. How about:

Saves 2 lines of code too!


If you can use a system with reasonable KVC (might require 10.3, I forget), then do this:

I am tremendously incompetent. It took me four or five edits just to get the quotes on that code right. Sorry.


Yeah, but you only have to do that once. If you observe the notification, you only have to do this from then on. –JediKnil