Archive for the ‘ResExcellence’ Category

Resizable Sheets

Posted on April 4th, 2008 by Paul Lefebvre

I needed this in a project I was working on and it turned out that Seth Willits had written about how to do this in a ResExcellence post from 2006.
Download the code to try it out. To use it, simply include the ResizableSheet class in your project and set your sheet’s Super to it. […]

CGS Private Functions

Posted on January 6th, 2008 by Paul Lefebvre

by Seth Willits
Mac OS X is full of private APIs available only to Apple to use in their own software and the operating system. Clever developers, much more knowledgeable than I, have been able to reverse engineer some of these APIs and do some neat things with them. I was fiddling with the CGSPrivate functions […]

OS X Style Preferences 3

Posted on December 29th, 2007 by Bob Keeney

Things have changed considerably in REALbasic over the years. When the 2nd version of this article came out in December of 2005, the REALbasic IDE had been rewritten to use the newer, modern interface and Carbon applications were still the rage for most Mac OS X applications. I will admit that the changes […]

Zing with CapacityString

Posted on October 15th, 2007 by Paul Lefebvre

by Seth Willits
In this tutorial we’re going to write a CapacityString class which will vastly improve string performance in certain situations. Now, I admit this tutorial isn’t exactly going to be eye catching, but I think for some of you it will be quite an eye opener.
The Problem
Let’s say that you’re going to be importing […]

Splitter Control

Posted on October 15th, 2007 by Paul Lefebvre

by Seth Willits
After much hard work and perspiration (not really)…….. it’s done.

As I originally thought, this code will take forever to explain and I don’t think many of you will want to read it anyway. It works and that’s all you need to know, right? If you have any questions about how this […]

Alternating Color ListBox (like iTunes)

Posted on October 10th, 2007 by Paul Lefebvre

by Bob Keeney
Many years ago, Erick Tejkowski posted a tutorial on alternating row colors to get the same style as an iTunes type listbox. The solution is simple, but yet many people still ask how to do it. We’ll step through the process on how to do this with REALbasic 2007.
Create the Class
Code reusability is […]

MessageDialog Sheet

Posted on October 10th, 2007 by Paul Lefebvre

by Seth Willits
The MessageDialog class is an important user interface element that if not done correctly, sticks out like a sore thumb on Mac OS X. Users expect a consistent message interface between applications, so it is critical that developers adopt and embrace the MessageDialog class as a part of becoming a good Mac OS […]

Quartz Gradients

Posted on September 15th, 2007 by Paul Lefebvre

by Seth Willits
Continuing the article about drawing a simple rectangle with a Quartz shadow, in this article we take a look at axial gradients. The code for this is actually a major pain to explain (I admit I don’t know everything there is to know about it as well), so, sorry, but I’m going to […]

Wiggle Window

Posted on September 13th, 2007 by Paul Lefebvre

by Erick Tejkowski
Should you accidentally enter the wrong password while logging onto an OS X machine, you’ll notice that the login window wiggles back and forth a few times. In fact, it looks like the login window is shaking its head “NO!” at you. This week we’ll look at how to implement this functionality with […]