Retired Document
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.
ComboBoxPrefs
Last Revision: | Version 1.1, 2005-10-04 Updated to produce a universal binary. No code changes were required. |
Build Requirements: | Xcode |
Runtime Requirements: | 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.
Copyright © 2005 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2005-10-04