File: programming/cocoa/

/* =============================================================================
	FILE:		UKPrefsPanel.h
	AUTHORS:	M. Uli Kusterer (UK), (c) Copyright 2003, all rights reserved.
		2003-08-13	UK	Added auto-save, fixed bug with empty window titles.
		2003-07-22  UK  Added Panther stuff, documented.
		2003-06-30  UK  Created.
   ========================================================================== */
/**		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. */
/* -----------------------------------------------------------------------------
   -------------------------------------------------------------------------- */
#import <Foundation/Foundation.h>
/* -----------------------------------------------------------------------------
   -------------------------------------------------------------------------- *////< The tabless tab-view that we're a switcher for.
///< Auto-generated from tab view's items.
///< Auto-fetched at awakeFromNib time. We append a colon and the name of the current page to the actual window title.
///< Identifier used for saving toolbar state and current selected page of prefs window.
/// Mutator for specifying the tab view: (you should just hook this up in IB)
///< Accessor for tab view containing the different pref panes.
// Action for hooking up this object and the menu item:
// You don't have to care about these:

This code uses the PclZip Zip File reading code, which is subject to the GNU LGPL. It also uses the GeSHi syntax highlighter, subject to the GPL. Ask if you want this for your own web site, it's free.