home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / ConversionScripts / ImageViewConversion.tops < prev    next >
Text File  |  1996-01-22  |  770b  |  20 lines

  1. /*
  2.     NXImageView -> NSImageView
  3.  
  4.     Also note the existence of NSImageCell in the AppKit.
  5. */
  6.  
  7. replace "NXImageView" with "NSImageView"
  8.  
  9. replace "NXImageStyle" with "NSImageFrameStyle"
  10.  
  11. replace "NX_ImageNoFrame" with "NSImageFrameNone"
  12. replace "NX_ImagePhoto" with "NSImageFramePhoto"
  13. replace "NX_ImageGrayBezel" with "NSImageFrameGrayBezel"
  14. replace "NX_ImageGroove" with "NSImageFrameGroove"
  15.  
  16. /*  The following may be risky to run as they are replacing fairly generic method names */
  17. replacemethod "setStyle:" with "setImageFrameStyle:"
  18. replacemethod "style" with "imageFrameStyle"
  19. warning "ImageViewConversion: style was converted to imageFrameStyle.  Window also used to have a style method, which is now styleMask.  Check to make sure this conversion is correct."
  20.