Article View: comp.sys.next.programmer
Article #1909Custom IB File window icons and custom palettes
From: Art Isbell
Date: Tue, 24 Nov 1992 05:33
Date: Tue, 24 Nov 1992 05:33
35 lines
2355 bytes
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
Technical Details
Message-ID:
<1eserjINNou@darkstar.UCSC.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!darkstar.UCSC.EDU!cats.ucsc.edu!isbellShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!darkstar.UCSC.EDU!cats.ucsc.edu!isbell From: isbell@cats.ucsc.edu (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Custom IB File window icons and custom palettes Date: 24 Nov 1992 05:33:39 GMT Organization: Cubic Solutions - NeXT software development and consulting Lines: 35 Distribution: world Message-ID: <1eserjINNou@darkstar.UCSC.EDU> NNTP-Posting-Host: si.ucsc.edu Summary: Need help!! Keywords: IB, palette