Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Version 1.1, 2005-10-04
Updated to produce a universal binary. No code changes were required.
Mac OS X
ComboBoxPrefs maintains a list of recently accessed pictures within its combo box. It is a chronological list (CFArray) stored via CFPreferences. We also override the standard behavior of the combo box to make it more like an address bar seen in web browsers. When an item from the ComboBox list is double-clicked that item is loaded. ComboBoxPrefs also demonstrates how to create a CGImageRef from a URL pointing to a picture.