🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by Art Isbell Tue, 24 Nov 1992 05:33
Custom IB File window icons and custom palettes
#1909
Author: Art Isbell
Date: Tue, 24 Nov 1992 05:33
35 lines
2355 bytes

I've run into a couple of brick walls trying to use 3.0's custom palette
capabilities and would like some suggestions.

In our suite of apps, we'll probably have aver 300 nibs, each of which need
about 10 classes added to NeXT's classes.  6 of them are in 2 separate
inheritance chains rooted at Object.  I thought it would be nice to make a
custom palette with custom File window icons so that for each new nib, I
wouldn't have to drag these 10 classes into the Classes suitcase (in the proper
order) and I would have a visual way to distinquish their instances instead of
having them all look like the sphere icon.

However, it appears that all non-View classes in custom palettes must be
immediate Object subclasses (as the docs hint at, but I wasn't certain that
"immediate" Object subclasses were required).  Whenever I try to add a subclass
of an Object subclass (an Object grandchild), I get a palette load error.  Am I
correct in assuming that only immediate Object subclasses can be used in
non-View palettes?

Also, I've had no luck implementing getIBImage in my non-View palette classes
so that a custom icon appears in IB's File window whenever one of these classes
is dragged off my palette and dropped in the File window.  All I ever get is
the standard sphere icon.  I've implemented getIBImage to return an NXImage
initialized from a tiff in the project directory, but gdb indicates that
getIBImage is never messaged at all.  Has anyone gotten this to work and if so,
what am I doing wrong?

Thanks.
-- 

Art Isbell                                                      Cubic Solutions
NeXT Registered Developer #745         NeXT software development and consulting
NeXTmail: isbell@cats.UCSC.EDU                             Voice: (408)335-1154
USmail: 95018-9442                                           Fax: (408)335-2515
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads