Re: Adding design-time 'live' functionality to IB palette items
Re: Adding design-time 'live' functionality to IB palette items
- Subject: Re: Adding design-time 'live' functionality to IB palette items
- From: James DiPalma <email@hidden>
- Date: Wed, 29 Jan 2003 23:30:50 -0800
From: Christopher Barnes <email@hidden>
What I want is something similar to NSTabView, where double-clicking
the
view causes the NSTabView to be selected, while single-clicking on a
tab
activates selects that particular NSTabViewItem.
What you are looking for is an "editor"; look at IBEditors.h for
methods that your editor should implement and in IBObjectProtocol.h for
this method:
- (NSString *)editorClassName;
Which can be put into a protocol on your object (or wherever you put
-inspectorClassName).
I don't think you'll find much documentation on getting an editor to
work, and its been a long time since I wrote NSTabView's editor, but
you can probably get something working. Start by getting your editor to
init and see what happens. If you want to open sub editors, also look
at IBDocument.h.
Good luck,
-jim
_______________________________________________
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.