Re: Interface Creation
Re: Interface Creation
- Subject: Re: Interface Creation
- From: Robbie Haertel <email@hidden>
- Date: Tue, 2 Nov 2004 18:17:54 -0700
In general, you subclass NSControl, NSView, or NSCell depending on
your needs. If you want to be able to use your items directly in IB
like you can NSTableView, NSButtons, etc. you have to also create a
Palette for it. A simple example that does all of the above is in
/Developer/Examples/InterfaceBuilder/ProgressViewPalette. To see how
to subclass NSControl, see ProgressView.h and .m. To see how to
subclass NSCell see ProgressCell.h and .m. The code for the palette
is in the ProgressViewPalette and ProgressViewInspector files (don't
forget to look at the nib files). After you build the project, be
sure to add the palette in the build directory to IB (Tools > Palettes
> Palette Prefereces... > Add...).
Using those samples along with the documentation of the classes they
inherit from, you can probably figure most of it out. I will leave it
up to other list members to send URLs of examples online, which are
probably abundant. But you will do good with the documentation for
NSControl, NSView, NSCell, etc. and any "Programming Topcis" (such as
Controls and Cells under NSControl) related to them.
best wishes,
Robbie
On Tue, 2 Nov 2004 16:54:16 -0800, Patrick Mosca <email@hidden> wrote:
> hey can anybody give me an URL or explanation on how to create your own
> interface objects like NSProgressIndicator
> On Nov 2, 2004, at 12:03 PM, email@hidden wrote:
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden