August 2006
5 posts
2 tags
Announcing FourOneOne 1.0
I’ve put together my first Cocoa application. It’s called FourOneOne. Several years ago I found a small application called Code Finder (now discontinued) by Andrew Zamler-Carhart. I used it all the time to look up area codes, zip codes and airport codes. Like Code Finder, FourOneOne provides a quick way to look up area codes, zip codes, country codes and airport codes. It’s totally free....
Aug 30th
3 tags
Basic command-line compilation syntax for...
cc -lobjc -lc -framework Foundation *.m
Aug 29th
4 tags
Xcode won't build a universal binary for old...
If you have an old Xcode project (like one of Apple’s samples) you may want to build it as a universal binary that will run natively on either PowerPC or Intel architectures. To do this, you would double-click on the project name in Xcode, then choose the Build tab, and then highlight Architectures and click Edit. Then choose both i386 and ppc architectures. So far, so good: it looks like you...
Aug 27th
3 tags
How to make a responsive cancel button in an...
I’m new to AppleScript and AppleScript Studio and I wanted to make script that shows a simple dialog with a progress indicator and a cancel button. The script begins a lengthy process that can take 30-60 seconds. If the user clicks the cancel button it should terminate immediately. I found that the cancel button was unresponsive until the end of the script. The solution, weirdly, was to turn...
Aug 26th
5 tags
How to draw a rectangle or oval outline in...
This seems easy, but I always forget how to do it. Let’s say you have a picture and you want to highlight part of it by drawing a rectangle around one section. Like this: Here’s how to do it with Photoshop Elements: Choose the rectangular marquee tool (you can also use the elliptical marquee tool). Draw a rectangle around the area you want to highlight. From the Edit menu, choose Stroke...
Aug 15th