home *** CD-ROM | disk | FTP | other *** search
/ Openstep 4.2 (Developer) / Openstep Developer 4.2.iso / NextDeveloper / OpenStepConversion / ConversionScripts / GeneralNamingConversion.tops < prev    next >
Encoding:
Text File  |  1996-01-23  |  18.9 KB  |  468 lines

  1. /*********** GeneralAPIConversion: simple name changes ***********/
  2.  
  3. replacemethod "<old>" with "<new>"
  4.     where ("<old>", "<new>") isOneOf {
  5.     ("addCol", "addColumn"),
  6.     ("addSubview::relativeTo:", "addSubview:positioned:relativeTo:"), 
  7.     ("allocFromZone:", "allocWithZone:"),
  8.     ("allowMultipleFiles:", "setAllowsMultipleFiles:"),
  9.     ("allowsMultipleFiles", "allowsMultipleSelection"),
  10.     ("altImage", "alternateImage"), 
  11.     ("altTitle", "alternateTitle"), 
  12.     ("areLinksVerifiedByDelegate", "delegateVerifiesLinks"),
  13.     ("becomeActiveApp", "becomeActiveApplication"),
  14.     ("boundsAngle", "boundsRotation"),
  15.     ("calcTargetForAction:", "targetForAction:"),
  16.     ("cellAt::", "cellAtRow:column:"), 
  17.     ("cellFrameAt::", "cellFrameAtRow:column:"), 
  18.     ("clearSelectedCell", " deselectSelectedCell"), 
  19.     ("columnOf:", "columnOfMatrix:"),
  20.     ("columnsAreSeparated", "separatesColumns"),
  21.     ("constrainScroll:", "constrainScrollPoint:"),
  22.     ("defaultParaStyle", "defaultParagraphStyle"),
  23.     ("destinationAppName", "destinationApplicationName"),
  24.     ("dividerHeight", "dividerThickness"),
  25.     ("docView", "documentView"),
  26.     ("docVisibleRect", "documentVisibleRect"),
  27.     ("documentClosed", "noteDocumentClosed"),
  28.     ("documentEdited", "noteDocumentEdited"),
  29.     ("documentReverted", "noteDocumentReverted"),
  30.     ("documentSaved", "noteDocumentSaved"),
  31.     ("documentSavedAs:", "noteDocumentSavedAs:"),
  32.     ("documentSavedTo:", "noteDocumentSavedTo:"),
  33.     ("doesAutosizeCells", "autosizesCells"),
  34.     ("doesBecomeKeyOnlyIfNeeded", "becomesKeyOnlyIfNeeded"),
  35.     ("doesHideOnDeactivate", "hidesOnDeactivate"),
  36.     ("doesShowAlpha", "showsAlpha"),
  37.     ("doesTreatFilePackagesAsDirectories", "treatsFilePackagesAsDirectories"),
  38.     ("drawArrow::", "drawArrow:highlight:"),
  39.     ("drawCellAt::", "drawCellAtRow:column:"), 
  40.     ("drawDivider:", "drawDividerInRect:")
  41.     }
  42.  
  43. replacemethod "<old>" with "<new>" 
  44.     where ("<old>", "<new>") isOneOf {
  45.     ("edit:inView:editor:delegate:event:", "editWithFrame:inView:editor:delegate:event:"),
  46.     ("findAncestorSharedWith:", "ancestorSharedWithView:"),
  47.     ("findAvailableTypeFrom:", "availableTypeFromArray:"),
  48.     ("findCellWithTag:", "cellWithTag:"),
  49.     ("findDestinationLinkWithSelection:", "destinationLinkWithSelection:"),
  50.     ("findFont:traits:weight:size:", "fontWithFamily:traits:weight:size:"),
  51.     ("findIndexWithTag:", "indexOfCellWithTag:"),
  52.     ("findViewWithTag:", "viewWithTag:"),
  53.     ("freeGState", "releaseGState"),
  54.     ("freeGlobally", "releaseGlobally"),
  55.     ("getFieldEditor:for:", "fieldEditor:forObject:"),
  56.     ("getLink:andManager:isMultiple:", "getLink:manager:isMultiple:"),
  57.     ("getLoadedCellAtRow:inColumn:", "loadedCellAtRow:column:"),
  58.     ("getNumRows:numCols:", "getNumberOfRows:columns:"),
  59.     ("getParameter:", "cellAttribute:"), 
  60.     ("getPeriodicDelay:andInterval:", "getPeriodicDelay:interval:"),
  61.     ("getRow:andCol:forPoint:", "getRow:column:forPoint:"),
  62.     ("getRow:andCol:ofCell:", "getRow:column:ofCell:"),
  63.     ("getSel::", "getSelectionStart:end:"), 
  64.     ("getTitleFromPreviousColumn:", "setTakesTitleFromPreviousColumn:"),
  65.     ("getWordsInDictionary:", "wordsInDictionary:"),
  66.     ("horizPagination", "horizontalPagination"),
  67.     ("horizScroller", "horizontalScroller"),
  68.     ("ignoreMultiClick:", "setIgnoresMultiClick:")
  69.     }
  70.  
  71. replacemethod "<old>" with "<new>" 
  72.     where ("<old>", "<new>") isOneOf {
  73.     ("initFrame:mode:cellClass:numRows:numCols:", "initWithFrame:mode:cellClass:numberOfRows:numberOfColumns:"),
  74.     ("initFrame:mode:cellClass:numRows:numCols:", "initWithFrame:mode:prototype:numberOfRows:numberOfColumns:"),
  75.     ("initFrame:mode:prototype:numRows:numCols:", "initWithFrame:mode:prototype:numberOfRows:numberOfColumns:"),
  76.     ("initFrame:mode:prototype:numRows:numCols:", "initWithFrame:mode:prototype:numberOfRows:numberOfColumns:"),
  77.     ("initFrame:text:alignment:", "initWithFrame:text:alignment:"),
  78.     ("initFromFile:", "initWithContentsOfFile:"),
  79.     ("initFromImage:", "initWithImage:"),
  80.     ("initFromPasteboard:", "initWithPasteboard:")
  81.     ("initFromPickerMask:withColorPanel:", "initWithPickerMask:colorPanel:"),
  82.     ("initGState", "setUpGState"),
  83.     ("initSize:", "initWithSize:"), 
  84.     ("initTitle:", "initWithTitle:"), 
  85.     ("insertColAt:", "insertColumn:"),
  86.     ("insertRowAt:", "insertRow:"),
  87.     ("intercell", " intercellSpacing"), 
  88.     ("isBranchSelectionEnabled", "allowsBranchSelection"),
  89.     ("isClickForHelpEnabled", "clickForHelpAllowed"),
  90.     ("isDocEdited", "isDocumentEdited"),
  91.     ("isEmptySelectionEnabled", "allowsEmptySelection"),
  92.     ("isFontPanelEnabled", "usesFontPanel"),
  93.     ("isGraphicsImportEnabled", "importsGraphics"),
  94.     ("isHorizCentered", "isHorizontallyCentered"),
  95.     ("isHorizontalScrollerEnabled", "hasHorizontalScroller"),
  96.     ("isMultipleSelectionEnabled", "allowsMultipleSelection"),
  97.     ("isVertCentered", "isVerticallyCentered"),
  98.     ("makeCellAt::", "makeCellAtRow:column:"), 
  99.     ("numLinks", "numberOfLinks"),
  100.     ("numVisibleColumns", "numberOfVisibleColumns"),
  101.     ("panel:compareFilenames::checkCase:", "panel:compareFilename:with:caseSensitive:"),
  102.     ("putCell:at::", "putCell:atRow:column:")
  103.     }
  104.  
  105. replacemethod "<old>" with "<new>" 
  106.     where ("<old>", "<new>") isOneOf {
  107.     ("rawScroll:", "scrollToPoint:"),
  108.     ("reenableFlushWindow", "enableFlushWindow"),
  109.     ("reflectScroll:", "reflectScrolledClipView:"),
  110.     ("registerServicesMenuSendTypes:andReturnTypes:", "registerServicesMenuSendTypes:returnTypes:"),
  111.     ("renewRows:cols:", "renewRows:columns:"),
  112.     ("resignActiveApp", "resignActiveApplication"),
  113.     ("reuseColumns:", "setReusesColumns:"),
  114.     ("runModalFor:", "runModalForWindow:"),
  115.     ("scrollCellToVisible::", "scrollCellToVisibleAtRow:column:"), 
  116.     ("scrollClip:to:", "scrollClipView:toPoint:"),
  117.     ("select:inView:editor:delegate:start:length:", "selectWithFrame:inView:editor:delegate:start:length:"),
  118.     ("selectCellAt::", "selectCellAtRow:column:"), 
  119.     ("selectTextAt::", "selectTextAtRow:column:"),
  120.     ("selectedCol", "selectedColumn"),
  121.     ("separateColumns:", "setSeparatesColumns:"),
  122.     ("setAllowsMultipleFiles:", "setAllowsMultipleSelection:"),
  123.     ("setAltImage:", " setAlternateImage:"), 
  124.     ("setAltTitle:", " setAlternateTitle:"), 
  125.     ("setAutosizeCells:", "setAutosizesCells:"),
  126.     ("setBecomeKeyOnlyIfNeeded:", "setBecomesKeyOnlyIfNeeded:"),
  127.     ("setBranchSelectionEnabled:", "setAllowsBranchSelection:"),
  128.     ("setClickForHelpEnabled:", "setClickForHelpAllowed:"),
  129.     ("setCopyOnScroll:", "setCopiesOnScroll:"),
  130.     ("setDocCursor:", "setDocumentCursor:"),
  131.     ("setDocEdited:", "setDocumentEdited:"),
  132.     ("setDocView:", "setDocumentView:"),
  133.     ("setDynamicScrolling:", "setScrollsDynamically:"),
  134.     ("setEmptySelectionEnabled:", "setAllowsEmptySelection:")
  135.     }
  136.  
  137. replacemethod "<old>" with "<new>" 
  138.     where ("<old>", "<new>") isOneOf {
  139.     ("setFloatValue::", "setFloatValue:knobProportion:"), 
  140.     ("setFont:paraStyle:", "setFont:paragraphStyle:"),
  141.     ("setFreeWhenClosed:", "setReleasedWhenClosed:"),
  142.     ("setGraphicsImportEnabled:", "setImportsGraphics:"),
  143.     ("setHideOnDeactivate:", "setHidesOnDeactivate:"),
  144.     ("setHorizCentered:", "setHorizontallyCentered:"),
  145.     ("setHorizPagination:", "setHorizontalPagination:"),
  146.     ("setHorizScroller:", "setHorizontalScroller:"),
  147.     ("setHorizScrollerRequired:", "setHasHorizontalScroller:"),
  148.     ("setHorizontalScrollerEnabled:", "setHasHorizontalScroller:"),
  149.     ("setImage:at::", "setImage:atRow:column:"), 
  150.     ("setIntercell:", " setIntercellSpacing:"), 
  151.     ("setInterline:", " setInterlineSpacing:"), 
  152.     ("setLink:andManager:isMultiple:", "setLink:manager:isMultiple:"),
  153.     ("setLinksVerifiedByDelegate:", "setDelegateVerifiesLinks:"),
  154.     ("setMultipleSelectionEnabled:", "setAllowsMultipleSelection:"),
  155.     ("setParaStyle:", "setParagraphStyle:"),
  156.     ("setParameter:to:", "setCellAttribute:to:"), 
  157.     ("setPeriodicDelay:andInterval:", "setPeriodicDelay:interval:"),
  158.     ("setSelectionFrom:to:anchor:lit:", "setSelectionFrom:to:anchor:highlight:"), 
  159.     ("setShowAlpha:", "setShowsAlpha:"),
  160.     ("setState:at::", "setState:atRow:column:"), 
  161.     ("setTitle:at::", "setTitle:atRow:column:"),
  162.     ("setVertCentered:", "setVerticallyCentered:"),
  163.     ("setVertPagination:", "setVerticalPagination:"),
  164.     ("setVertScroller:", "setVerticalScroller:"),
  165.     ("setVertScrollerRequired:", "setHasVerticalScroller:"),
  166.     ("sourceAppName", "sourceApplicationName"),
  167.     ("sourceEdited", "noteSourceEdited"),
  168.     ("splitView:getMinY:maxY:ofSubviewAt:", "splitView:constrainMinCoordinate:maxCoordinate:ofSubviewAt:"),
  169.     ("textDelegate", "delegate"),
  170.     ("setTextDelegate:", "setDelegate:"),
  171.     ("validRequestorForSendType:andReturnType:", "validRequestorForSendType:returnType:"),
  172.     ("validateSize:", "setValidateSize:"),
  173.     ("vertPagination", "verticalPagination"),
  174.     ("vertScroller", "verticalScroller"),
  175.     ("windowNum", "windowNumber"),
  176.     }
  177.  
  178. /*********** GeneralAPIConversion: init methods ***********/
  179.  
  180. replace    "<t object> = [[<b alloc>] initFrame:<rect> image:<image> tag:<tag> target:<target> action:<sel> key:<key> enabled:<flag>];" with "{
  181.     <t object> = [[<b alloc>] initWithFrame:<rect>];
  182.     [<t object> setImage:<image>];
  183.     [<t object> setTag:<tag>];
  184.     [<t object> setTarget:<target>];
  185.     [<t object> setAction:<sel>];
  186.     [<t object> setKeyEquivalent:<key>];
  187.     [<t object> setEnabled:<flag>];
  188.     }"
  189.  
  190. replace    "<t object> = [[<b alloc>] initFrame:<rect> title:<title> tag:<tag> target:<target> action:<sel> key:<key> enabled:<flag>];" with "{
  191.     <t object> = [[<b alloc>] initWithFrame:<rect>];
  192.     [<t object> setTitle:<title>];
  193.     [<t object> setTag:<tag>];
  194.     [<t object> setTarget:<target>];
  195.     [<t object> setAction:<sel>];
  196.     [<t object> setKeyEquivalent:<key>];
  197.     [<t object> setEnabled:<flag>];
  198.     }"
  199.  
  200. /*********** GeneralAPIConversion: open panel, save panel ***********/
  201.  
  202. replacemethod "panel:filterFile:inDirectory:" with "panel:shouldShowFilename:"
  203.     warning "GeneralNamingConversion: 'panel:shouldShowFilename:' (used to be 'panel:filterFile:inDirectory') takes an absolute path ; directory is no longer passed in"
  204.     
  205. replacemethod "filenames" with same
  206.     warning "GeneralNamingConversion: 'filenames' now returns absolute paths"
  207.     
  208. replacemethod "panelValidateFilenames:" with "panel:isValidFilename:<file>" {
  209.     replace "<file_type>" with "(NSString *)"
  210.     replace "<file_param>" with "_file"
  211.     replace "<file_arg>" with "FILENEEDED"
  212.     }
  213.     within ("<implementation>") {
  214.         replace "[<sender_param filename]" with "_file"
  215.     }
  216.  
  217. replacemethod "chooseDirectories" with "setCanChooseFiles:<flag>" {
  218.     replace "<flag_arg>" with "!<flag_arg>"
  219.     }
  220.     within ("<implementation>") {
  221.     replace "<flag_param>" with "!<flag_param>"
  222.     }
  223.  
  224. /*********** GeneralAPIConversion: NSBox ***********/
  225.  
  226. replace "@interface <isKindOf(NSBox)<w w1><any interface><w w2>@end" with same
  227.     within ("<interface>") {
  228.         replacemethod "update" with same
  229.         error "GeneralNamingConversion: The View 'update' method is obsolete"
  230.     }
  231.  
  232. /*********** GeneralAPIConversion: NSMatrix ***********/
  233.  
  234. replace "[<matrix> removeRowAt:<row> andFree:<flag>]" with "[<matrix> removeRow:<row>]"
  235.     warning "GeneralNamingConversion: The old andFree:<flag> argument no longer exists; now the removed cell is released. You might want to assure that this is the correct behavior."
  236.  
  237. replace "[<matrix> removeColAt:<row> andFree:<flag>]" with "[<matrix> removeCol:<row>]"
  238.     warning "GeneralNamingConversion: The old andFree:<flag> argument no longer exists; now the removed cell is released. You might want to assure that this is the correct behavior."
  239.  
  240. /*********** GeneralAPIConversion: other method changes ***********/
  241.  
  242. replace "[<obj> draggedImageCopy]" with "[[<obj> draggedImage] retain]"
  243.  
  244. replacemethod "isDraggingSourceLocal" with same
  245.     error "GeneralNamingConversion: 'isDraggingSourceLocal' is obsolete. draggingSource returns nil if the dragging source is not local."
  246.  
  247. replacemethod "highlightCellAt:<row> :<col> lit:<flag>"
  248.     with "highlightCell:<flag> atRow:<row> column:<col>"
  249.  
  250. /*********** GeneralAPIConversion: obsolete methods ***********/
  251.  
  252. replacemethod "isClickForHelpEnabled" with same
  253.     error "GeneralNamingConversion: 'isClickForHelpEnabled' is obsolete.  This feature is now always enabled (ctr+alt on black hardware and F1 on white hardware)."
  254.  
  255. replacemethod "setClickForHelpEnabled:" with same
  256.     error "GeneralNamingConversion: 'setClickForHelpEnabled:' is obsolete.  This feature is now always enabled (ctr+alt on black hardware and F1 on white hardware)."
  257.  
  258. /*********** GeneralAPIConversion: nextstd.h ***********/
  259.  
  260. replace    "NX_MALLOC(<var>, <type>, <num>)" with "<var> = malloc((<num>) * sizeof(<type>))"
  261.  
  262. replace    "NX_REALLOC(<var>, <type>, <num>)" with "<var> = realloc(<var>, (<num>) * sizeof(<type>))"
  263.  
  264. replace    "NX_FREE" with "free"
  265.  
  266. replace    "NX_ZONEMALLOC(<b zone>, <b var>, <b type>, <b num>)" with "<b var> = NSZoneMalloc(<b zone>, (<b num>) * sizeof(<b type>))"
  267.  
  268. replace    "NX_ZONEREALLOC(<b zone>, <b var>, <b type>, <b num>)" with "<b var> = NSZoneRealloc(<b zone>, <b var>, (<b num>) * sizeof(<b type>))"
  269.  
  270. replace "NX_ZONEREALLOC" with same
  271. warning "GeneralNamingConversion: This occurrence of NX_ZONEREALLOC could not be replaced with NSZoneMalloc and needs intervention."
  272.  
  273. replace "NX_ZONEMALLOC" with same
  274. warning "GeneralNamingConversion: This occurrence of NX_ZONEMALLOC could not be replaced with NSZoneMalloc and needs intervention."
  275.  
  276. replace    "NX_ASSERT(<exp>, <string str>);" with "NSAssert(<exp>, @<str>);"
  277.  
  278. replace    "NX_ASSERT(<exp>, <exp str>);" with "NSAssert1(<exp>, @\"%@\", <str>);"
  279.  
  280. /*********** GeneralAPIConversion: file name changes ***********/
  281.  
  282. replace    "\"colorPicking.h\"" with "\"NSColorPicking.h\""
  283.  
  284. replace    "<AppKit/colorPicking.h>" with "<AppKit/NSColorPicking.h>"
  285.  
  286. replace    "\"drag.h\"" with "\"NSDragging.h\""
  287.  
  288. replace    "<AppKit/drag.h>" with "<AppKit/NSDragging.h>"
  289.  
  290. replace    "\"errors.h\"" with "\"NSErrors.h\""
  291.  
  292. replace    "<AppKit/errors.h>" with "<AppKit/NSErrors.h>"
  293.  
  294. replace    "\"readOnlyTextStream.h\"" with "\"NSReadOnlyTextStream.h\""
  295.  
  296. replace    "<AppKit/readOnlyTextStream.h>" with "<AppKit/NSReadOnlyTextStream.h>"
  297.  
  298. replace "\"workspaceRequest.h\"" with "\"NSWorkspace.h\""
  299.  
  300. replace "<AppKit/workspaceRequest.h>" with "<AppKit/NSWorkspace.h>"
  301.  
  302. replace "#include \"timer.h\"" with "/*#include \"timer.h\"*/"
  303.  
  304. replace "#include <AppKit/timer.h>" with "/*#include <AppKit/timer.h>*/"
  305.  
  306. replace "#include \"nextstd.h\"" with "/*#include \"nextstd.h\"*/"
  307.  
  308. replace "#include <AppKit/nextstd.h>" with "/*#include <AppKit/nextstd.h>*/"
  309.  
  310. replace "#import \"timer.h\"" with "/*#import \"timer.h\"*/"
  311.  
  312. replace "#import <AppKit/timer.h>" with "/*#import <AppKit/timer.h>*/"
  313.  
  314. replace "#import \"nextstd.h\"" with "/*#import \"nextstd.h\"*/"
  315.  
  316. replace "#import <AppKit/nextstd.h>" with "/*#import <AppKit/nextstd.h>*/"
  317.  
  318. /*********** GeneralAPIConversion: an obsolete type ***********/
  319.  
  320. replace "<unitName>" with same
  321.     error "GeneralNamingConversion: The 'NXMeasurementUnit' type and <unitName> are obsolete. You can get the users unit preference by reading the 'NSMeasurementUnit' default."
  322.     where "<unitName>" isOneOf {
  323.     "NSInchUnit",
  324.     "NSCentimeterUnit",
  325.     "NSPointUnit",
  326.     "NSPicaUnit"
  327.     }
  328.  
  329.  
  330. /*********** GeneralAPIConversion: architecture/byte_order.h ***********/
  331.  
  332. replace "#import <architecture/byte_order.h>" with "#import <Foundation/NSByteOrder.h>"
  333.  
  334. replace "#include <architecture/byte_order.h>" with "#import <Foundation/NSByteOrder.h>"
  335.  
  336. replace "NXByteOrder" with "NSByteOrder"
  337.  
  338. replace "NX_UnknownByteOrder" with "NS_UnknownByteOrder"
  339.  
  340. replace "NX_LittleEndian" with "NS_LittleEndian"
  341.  
  342. replace "NX_BigEndian" with "NS_BigEndian"
  343.  
  344. replace "NXSwappedFloat" with "NSSwappedFloat"
  345.  
  346. replace "NXSwappedDouble" with "NSSwappedFloat"
  347.  
  348. replace "NXHostByteOrder" with "NSHostByteOrder"
  349.  
  350. replace "NXSwapBigShortToHost" with "NSSwapBigShortToHost"
  351.  
  352. replace "NXSwapBigIntToHost" with "NSSwapBigIntToHost"
  353.  
  354. replace "NXSwapBigLongToHost" with "NSSwapBigLongToHost"
  355.  
  356. replace "NXSwapBigLongLongToHost" with "NSSwapBigLongLongToHost"
  357.  
  358. replace "NXSwapBigDoubleToHost" with "NSSwapBigDoubleToHost"
  359.  
  360. replace "NXSwapBigFloatToHost" with "NSSwapBigFloatToHost"
  361.  
  362. replace "NXSwapHostShortToBig" with "NSSwapHostShortToBig"
  363.  
  364. replace "NXSwapHostIntToBig" with "NSSwapHostIntToBig"
  365.  
  366. replace "NXSwapHostLongToBig" with "NSSwapHostLongToBig"
  367.  
  368. replace "NXSwapHostLongLongToBig" with "NSSwapHostLongLongToBig"
  369.  
  370. replace "NXSwapHostDoubleToBig" with "NSSwapHostDoubleToBig"
  371.  
  372. replace "NXSwapHostFloatToBig" with "NSSwapHostFloatToBig"
  373.  
  374. replace "NXSwapLittleShortToHost" with "NSSwapLittleShortToHost"
  375.  
  376. replace "NXSwapLittleIntToHost" with "NSSwapLittleIntToHost"
  377.  
  378. replace "NXSwapLittleLongToHost" with "NSSwapLittleLongToHost"
  379.  
  380. replace "NXSwapLittleLongLongToHost" with "NSSwapLittleLongLongToHost"
  381.  
  382. replace "NXSwapLittleDoubleToHost" with "NSSwapLittleDoubleToHost"
  383.  
  384. replace "NXSwapLittleFloatToHost" with "NSSwapLittleFloatToHost"
  385.  
  386. replace "NXSwapHostShortToLittle" with "NSSwapHostShortToLittle"
  387.  
  388. replace "NXSwapHostLongToLittle" with "NSSwapHostLongToLittle"
  389.  
  390. replace "NXSwapHostLongLongToLittle" with "NSSwapHostLongLongToLittle"
  391.  
  392. replace "NXSwapHostDoubleToLittle" with "NSSwapHostDoubleToLittle"
  393.  
  394. replace "NXSwapHostFloatToLittle" with "NSSwapHostFloatToLittle"
  395.  
  396. replace "NXSwapBigShortToHost" with "NSSwapBigShortToHost"
  397.  
  398. replace "NXSwapBigIntToHost" with "NSSwapBigIntToHost"
  399.  
  400. replace "NXSwapBigLongToHost" with "NSSwapBigLongToHost"
  401.  
  402. replace "NXSwapBigLongLongToHost" with "NSSwapBigLongLongToHost"
  403.  
  404. replace "NXSwapBigDoubleToHost" with "NSSwapBigDoubleToHost"
  405.  
  406. replace "NXSwapBigFloatToHost" with "NSSwapBigFloatToHost"
  407.  
  408. replace "NXSwapHostShortToBig" with "NSSwapHostShortToBig"
  409.  
  410. replace "NXSwapHostIntToBig" with "NSSwapHostIntToBig"
  411.  
  412. replace "NXSwapHostLongToBig" with "NSSwapHostLongToBig"
  413.  
  414. replace "NXSwapHostLongLongToBig" with "NSSwapHostLongLongToBig"
  415.  
  416. replace "NXSwapHostDoubleToBig" with "NSSwapHostDoubleToBig"
  417.  
  418. replace "NXSwapHostFloatToBig" with "NSSwapHostFloatToBig"
  419.  
  420. replace "NXSwapLittleShortToHost" with "NSSwapLittleShortToHost"
  421.  
  422. replace "NXSwapLittleIntToHost" with "NSSwapLittleIntToHost"
  423.  
  424. replace "NXSwapLittleLongToHost" with "NSSwapLittleLongToHost"
  425.  
  426. replace "NXSwapLittleLongLongToHost" with "NSSwapLittleLongLongToHost"
  427.  
  428. replace "NXSwapLittleDoubleToHost" with "NSSwapLittleDoubleToHost"
  429.  
  430. replace "NXSwapLittleFloatToHost" with "NSSwapLittleFloatToHost"
  431.  
  432. replace "NXSwapHostShortToLittle" with "NSSwapHostShortToLittle"
  433.  
  434. replace "NXSwapHostIntToLittle" with "NSSwapHostIntToLittle"
  435.  
  436. replace "NXSwapHostLongToLittle" with "NSSwapHostLongToLittle"
  437.  
  438. replace "NXSwapHostLongLongToLittle" with "NSSwapHostLongLongToLittle"
  439.  
  440. replace "NXSwapHostDoubleToLittle" with "NSSwapHostDoubleToLittle"
  441.  
  442. replace "NXConvertSwappedDoubleToHost" with "NSConvertSwappedDoubleToHost"
  443.  
  444. replace "NXConvertSwappedFloatToHost" with "NSConvertSwappedFloatToHost"
  445.  
  446. replace "NXConvertHostDoubleToSwapped" with "NSConvertHostDoubleToSwapped"
  447.  
  448. replace "NXConvertHostFloatToSwapped" with "NSConvertHostFloatToSwapped"
  449.  
  450. replace "NXSwapShort" with "NSSwapShort"
  451.  
  452. replace "NXSwapInt" with "NSSwapInt"
  453.  
  454. replace "NXSwapLong" with "NSSwapLong"
  455.  
  456. replace "NXSwapLongLong" with "NSSwapLongLong"
  457.  
  458. replace "NXSwapDouble" with "NSSwapDouble"
  459.  
  460. replace "NXSwapFloat" with "NSSwapFloat"
  461.  
  462.  
  463. /*********** GeneralAPIConversion: NSAlert ***********/
  464.  
  465. replace "NSRunLocalizedAlertPanel(<table>, <title>, <msg>, <defaultButton>, <alternateButton>, <otherButton>, <b args>)" with "NSRunAlertPanel(<title>, <msg>, <defaultButton>, <alternateButton>, <otherButton>, <b args>)"
  466.     warning "GeneralNamingConversion: NSRunLocalizedAlertPanel is obsolete, and has been converted to NSRunAlertPanel.  You may need to localize the arguments using the StringTable <table>."
  467.  
  468.