home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / programm / 7392 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  2.3 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!darkstar.UCSC.EDU!cats.ucsc.edu!isbell
  2. From: isbell@cats.ucsc.edu (Art Isbell)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Custom IB File window icons and custom palettes
  5. Date: 24 Nov 1992 05:33:39 GMT
  6. Organization: Cubic Solutions - NeXT software development and consulting
  7. Lines: 35
  8. Distribution: world
  9. Message-ID: <1eserjINNou@darkstar.UCSC.EDU>
  10. NNTP-Posting-Host: si.ucsc.edu
  11. Summary: Need help!!
  12. Keywords: IB, palette
  13.  
  14.  
  15.  
  16. I've run into a couple of brick walls trying to use 3.0's custom palette
  17. capabilities and would like some suggestions.
  18.  
  19. In our suite of apps, we'll probably have aver 300 nibs, each of which need
  20. about 10 classes added to NeXT's classes.  6 of them are in 2 separate
  21. inheritance chains rooted at Object.  I thought it would be nice to make a
  22. custom palette with custom File window icons so that for each new nib, I
  23. wouldn't have to drag these 10 classes into the Classes suitcase (in the proper
  24. order) and I would have a visual way to distinquish their instances instead of
  25. having them all look like the sphere icon.
  26.  
  27. However, it appears that all non-View classes in custom palettes must be
  28. immediate Object subclasses (as the docs hint at, but I wasn't certain that
  29. "immediate" Object subclasses were required).  Whenever I try to add a subclass
  30. of an Object subclass (an Object grandchild), I get a palette load error.  Am I
  31. correct in assuming that only immediate Object subclasses can be used in
  32. non-View palettes?
  33.  
  34. Also, I've had no luck implementing getIBImage in my non-View palette classes
  35. so that a custom icon appears in IB's File window whenever one of these classes
  36. is dragged off my palette and dropped in the File window.  All I ever get is
  37. the standard sphere icon.  I've implemented getIBImage to return an NXImage
  38. initialized from a tiff in the project directory, but gdb indicates that
  39. getIBImage is never messaged at all.  Has anyone gotten this to work and if so,
  40. what am I doing wrong?
  41.  
  42. Thanks.
  43. -- 
  44.  
  45. Art Isbell                                                      Cubic Solutions
  46. NeXT Registered Developer #745         NeXT software development and consulting
  47. NeXTmail: isbell@cats.UCSC.EDU                             Voice: (408)335-1154
  48. USmail: 95018-9442                                           Fax: (408)335-2515
  49.