home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / ConversionScripts / PR2to40.tops < prev    next >
Encoding:
Text File  |  1996-05-03  |  2.8 KB  |  40 lines

  1. replacemethod "notifyEdited:range:changeInLength:invalidatedRange:" with same
  2.     error "PR2to40Conversion: notifyEdited:range:changeInLength:invalidatedRange: is obsolete"
  3.  
  4. replacemethod "verifyEdited:range:changeInLength:" with same
  5.     error "PR2to40Conversion: verifyEdited:range:changeInLength: is obsolete"
  6.  
  7. replace "[<obj> attributedStringFromRTF:<arg>]" with "[[[<obj> alloc] initWithRTF:<arg> documentAttributes:NULL] autorelease]"
  8.  
  9. replace "[<obj> attributedStringFromRTFD:<arg>]" with "[[[<obj> alloc] initWithRTFD:<arg> documentAttributes:NULL] autorelease]"
  10.  
  11. replace "[<obj> attributedStringFromRTFDFile:<arg>]" with "[[[<obj> alloc] initWithPath:<arg> documentAttributes:NULL] autorelease]"
  12.  
  13. replace "[<obj> RTFFromRange:<arg>]" with same
  14.     warning "PR2to40Conversion: RTFDFromRange: in NSAttributedString is now RTFFromRange:documentAttributes:; if this method is being sent to an attributed string or text storage, use [<obj> RTFFromRange:<arg> documentAttributes:nil]. If it is sent to a text view, no change is necessary."
  15.  
  16. replace "[<obj> RTFDFromRange:<arg>]" with same
  17.     warning "PR2to40Conversion: RTFDFromRange: in NSAttributedString is now RTFDFromRange:documentAttributes:; if this method is being sent to an attributed string or text storage, use [<obj> RTFDFromRange:<arg> documentAttributes:nil]. If it is sent to a text view, no change is necessary."
  18.  
  19. replace "[<obj> writeRTFDToFile:<path> atomically:<flag>]" with same
  20.     warning "PR2to40Conversion: writeRTFDToFile:atomically: in NSAttributedString has changed; if this method is being sent to an attributed string or text storage, use [[<obj> RTFDFileWrapperFromRange:NSMakeRange(0, [<obj> length]) documentAttributes:nil] writeToFile:<path> atomically:<flag> updateFilenames:YES]. (Use NO if this is a \"save to\" rather than \"save as\" or \"save\".) If it is sent to a text view, no change is necessary."
  21.  
  22. replace "NSAttributedStringEditedAttributes" with "NSTextStorageEditedAttributes"
  23.  
  24. replace "NSAttributedStringEditedCharacters" with "NSTextStorageEditedCharacters"
  25.  
  26. replace "[<obj> setHotSpot:<arg>]" with same
  27.     warning "PR2to40Conversion: -[NSCursor setHotSpot:] is now obsolete; you can no longer dynamically change the hotSpot of a cursor. Use -[NSCursor initWithImage:hotSpot:] instead."
  28.  
  29. replace "[[NSCursor <b alloc>] initWithImage:<arg>]" with "[[NSCursor <b alloc>] initWithImage:<arg> hotSpot:NSZeroPoint]"
  30.     warning "PR2to40Conversion: -[NSCursor initWithImage:] was changed to -[NSCursor initWithImage:hotSpot:]; please specify the correct hot spot."
  31.  
  32. replace "NSAdobeStandardCyrillicStringEncoding" with "NSWindowsCP1251StringEncoding"
  33.  
  34. replace "NSWinLatin1StringEncoding" with "NSWindowsCP1252StringEncoding"
  35.  
  36. replace "<AppKit/NSFormatter.h>" with "<Foundation/NSFormatter.h>"
  37.  
  38. replace "<AppKit/NSDateFormatter.h>" with "<Foundation/NSDateFormatter.h>"
  39.  
  40.