• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [ANN] SS_PrefsController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ANN] SS_PrefsController


  • Subject: Re: [ANN] SS_PrefsController
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Mon, 30 Jun 2003 05:25:11 +0200

At 23:31 Uhr +0200 29.06.2003, M. Uli Kusterer wrote:
any chance of a version that doesn't use Bundles? OmniGroup already has something similar, I believe (though it probably relies on a bunch of their other classes), but what I'm really looking for is simply an NSPrefsPanel class where I can pass a delegate, a NIB file and an icon, and the rest is handled for me. But since I don't need plugin-preferences, I'd like to avoid the overhead of half a dozen subprojects in my app.

Matt,

nevermind, I've implemented my own. It was actually fairly easy:

I'm using a tabless NSTabView for the different pages. The names ("label"s) of the tabs are the names for the toolbar icons. The tab's identifiers are set to strings and used as the toolbar item identifiers as well as the name for the image files to use for the icons. And the tag of each toolbar item is used to keep track of the tab's index.

I've packed all that in a nice little delegate class that simply has an outlet for the tab view, and ta-da, you get a very quick simple prefs window. Simply instantiate the delegate, hook it up to the tab view, and at awakeFromNib time it will automagically add the toolbar with all the tabs' icons as the default items.

I'll probably throw it out in the public domain tomorrow if I don't forget it, along with a little class for Speech Synthesis speech channels I whipped together.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >[ANN] SS_PrefsController (From: Matt Gemmell <email@hidden>)
 >Re: [ANN] SS_PrefsController (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: instant code (general programming idea)
  • Next by Date: Subclass/category WebView? webView:didReceiveIcon:?
  • Previous by thread: Re: [ANN] SS_PrefsController
  • Next by thread: Visual problem with adding close (X) button to borderless window
  • Index(es):
    • Date
    • Thread