UKPrefsPanel Class Reference

A class that creates a simple Safari-like Preferences window with a toolbar at the top. More...

#import <UKPrefsPanel.h>

Inherits NSObject.

List of all members.

Public Member Functions

(void) setTabView:
 Mutator for specifying the tab view: (you should just hook this up in IB).
(NSTabView *) tabView
 Accessor for tab view containing the different pref panes.

Protected Attributes

IBOutlet NSTabView * tabView
 The tabless tab-view that we're a switcher for.
NSMutableDictionary * itemsList
 Auto-generated from tab view's items.
NSString * baseWindowName
 Auto-fetched at awakeFromNib time. We append a colon and the name of the current page to the actual window title.
NSString * autosaveName
 Identifier used for saving toolbar state and current selected page of prefs window.


Detailed Description

A class that creates a simple Safari-like Preferences window with a toolbar at the top.

UKPrefsPanel is ridiculously easy to use: Create a tabless NSTabView, where the name of each tab is the name for the toolbar item, and the identifier of each tab is the identifier to be used for the toolbar item to represent it. Then create image files with the identifier as their names to be used as icons in the toolbar.

Finally, drag UKPrefsPanel.h into the NIB with the NSTabView, instantiate a UKPrefsPanel and connect its tabView outlet to your NSTabView. When you open the window, the UKPrefsPanel will automatically add a toolbar to the window with all tabs represented by a toolbar item, and clicking an item will switch between the tab view's items.


The documentation for this class was generated from the following file:
Generated on Thu Sep 2 12:28:38 2004 for UKPrefsPanel by doxygen 1.3.8