Hm. There used to be a ProgressView example under the AppKit section, but since NSProgressIndicator was put into the AppKit, it's not there any more. You're basically just writing an NSView subclass, so start looking at example code there. Bundling it up in a palette is not a necessity (you can use the CustomView widget in the standard palettes), but it can be nice if you want to configure it in IB.
You could look at SndKit, which is now co-located with MusicKit:
http://sourceforge.net/projects/musickit
I believe the SndKit has a palette in it, and works on MacOS X. There may even be a class or two that's close to what you want.
There is also the MiscKit (
www.misckit.com). This was originally a NEXTSTEP kit with lots of stuff, including a wealth of palettes. A fair chunk of it was ported to OPENSTEP, and that code was later made to work on MacOS X Server. If you get that version (
ftp.misckit.com/pub/next/misckit), you will likely find some example palettes, though they are not likely to build without some tweaking on MacOS X (especially if they have any postscript code). However they could provide some examples, as the details of how to do palettes are the same.
The MiscKit has been fairly dormant for a while, but it sounds like it may be reborn in the next few months, so maybe there will be a good source of examples at that point.
You also may find examples on Softrak -- browse the MacOS X section on
softrak.stepwise.com.
[ 06-10-2001: Message edited by: lindberg ]