home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / ConversionScripts / IvarConversion.tops < prev    next >
Text File  |  1995-05-12  |  52KB  |  1,343 lines

  1. /*********** IvarConversion: NSActionCell *************/
  2.         
  3. replace "@implementation <isKindOf(NSActionCell) class><w w1><any class_impl><w w2>@end" with same
  4.     within ("<class_impl>") {
  5.     replacemethod "<t protect_me>" with "<t protected>"
  6.         where ("<protect_me>" "<protected>") isOneOf {
  7.         ("tag" "tag_METHOD")
  8.         ("target" "target_METHOD")
  9.         ("action" "action_METHOD")
  10.         }
  11.     }
  12.     
  13. replace "@implementation <isKindOf(NSActionCell) class><w w1><any class_impl><w w2>@end" with same
  14.     within ("<class_impl>") {
  15.     replace "tag" with "[self tag]"
  16.     replace "target" with "[self target]"
  17.     replace "action" with "[self action]"
  18.     }
  19.     
  20. replace "@implementation <isKindOf(NSActionCell) class><w w1><any class_impl><w w2>@end" with same
  21.     within ("<class_impl>") {
  22.     replace "<t protected>" with "<t protect_me>"
  23.         where ("<protect_me>" "<protected>") isOneOf {
  24.         ("tag" "tag_METHOD")
  25.         ("target" "target_METHOD")
  26.         ("action" "action_METHOD")
  27.         }
  28.     }
  29.     
  30. /*********** IvarConversion: NSApplication *************/
  31.         
  32. replace "@implementation <isKindOf(NSApplication) class><w w1><any class_impl><w w2>@end" with same
  33.     within ("<class_impl>") {
  34.     replacemethod "<t protect_me>" with "<t protected>"
  35.         where ("<protect_me>" "<protected>") isOneOf {
  36.         ("currentEvent" "currentEvent_METHOD")
  37.         ("windowList" "windowList_METHOD")
  38.         ("keyWindow" "keyWindow_METHOD")
  39.         ("mainWindow" "mainWindow_METHOD")
  40.         ("delegate" "delegate_METHOD")
  41.         ("context" "context_METHOD")
  42.         ("running" "running_METHOD")
  43.         ("appListener" "appListener_METHOD")
  44.         ("appSpeaker" "appSpeaker_METHOD")
  45.         ("replyPort" "replyPort_METHOD")
  46.         ("appName" "appName_METHOD")
  47.         ("hostName" "hostName_METHOD")
  48.         ("screenSize" "screenSize_METHOD")
  49.         }
  50.     }
  51.     
  52. replace "@implementation <isKindOf(NSApplication) class><w w1><any class_impl><w w2>@end" with same
  53.     within ("<class_impl>") {
  54.     replace "currentEvent" with "[self currentEvent]"
  55.     replace "windowList" with "[self windows]"
  56.     replace "keyWindow" with "[self keyWindow]"
  57.     replace "mainWindow" with "[self mainWindow]"
  58.     replace "delegate" with "[self delegate]"
  59.     replace "context" with "[self context]"
  60.     replace "running" with "[self isRunning]"
  61.     replace "appFlags.hidden" with "[self isHidden]"
  62.     replace "appFlags.active" with "[self isActive]"
  63.     replace "appListener" with "[self appListener]"
  64.     replace "appSpeaker" with "[self appSpeaker]"
  65.     replace "replyPort" with "[self replyPort]"
  66.     replace "appName" with "[[NSProcessInfo processInfo] processName]"
  67.     replace "hostName" with "[[NSProcessInfo processInfo] hostName]"
  68.     replace "screenSize" with "([[NSScreen mainScreen] frame].size)"
  69.     }
  70.  
  71. replace "@implementation <isKindOf(NSApplication) class><w w1><any class_impl><w w2>@end" with same
  72.     within ("<class_impl>") {
  73.     replace "<t protected>" with "<t protect_me>"
  74.         where ("<protect_me>" "<protected>") isOneOf {
  75.         ("currentEvent" "currentEvent_METHOD")
  76.         ("windowList" "windowList_METHOD")
  77.         ("keyWindow" "keyWindow_METHOD")
  78.         ("mainWindow" "mainWindow_METHOD")
  79.         ("delegate" "delegate_METHOD")
  80.         ("context" "context_METHOD")
  81.         ("running" "running_METHOD")
  82.         ("appListener" "appListener_METHOD")
  83.         ("appSpeaker" "appSpeaker_METHOD")
  84.         ("replyPort" "replyPort_METHOD")
  85.         ("appName" "appName_METHOD")
  86.         ("hostName" "hostName_METHOD")
  87.         ("screenSize" "screenSize_METHOD")
  88.         }
  89.     }
  90.     
  91.     
  92. /*********** IvarConversion: NSBox *************/
  93.     
  94. replace "@implementation <isKindOf(NSBox) class><w w1><any class_impl><w w2>@end" with same
  95.     within ("<class_impl>") {
  96.     replacemethod "<t protect_me>" with "<t protected>"
  97.         where ("<protect_me>" "<protected>") isOneOf {
  98.         ("cell" "cell_METHOD")
  99.         ("contentView" "contentView_METHOD")
  100.         ("offsets" "offsets_METHOD")
  101.         ("borderRect" "borderRect_METHOD")
  102.         ("titleRect" "titleRect_METHOD")
  103.         }
  104.     }
  105.     
  106. replace "@implementation <isKindOf(NSBox) class><w w1><any class_impl><w w2>@end" with same
  107.     within ("<class_impl>") {
  108.     replace "cell" with "[self titleCell]"
  109.     replace "contentView" with "[self contentView]"
  110.     replace "offsets" with "[self contentViewMargins]"
  111.     replace "borderRect" with "[self borderRect]"
  112.     replace "titleRect" with "[self titleRect]"
  113.     replace "bFlags.borderType" with "[self borderType]"
  114.     replace "bFlags.titlePosition" with "[self titlePosition]"
  115.     }
  116.     
  117. replace "@implementation <isKindOf(NSBox) class><w w1><any class_impl><w w2>@end" with same
  118.     within ("<class_impl>") {
  119.     replace "<t protected>" with "<t protect_me>"
  120.         where ("<protect_me>" "<protected>") isOneOf {
  121.         ("cell" "cell_METHOD")
  122.         ("contentView" "contentView_METHOD")
  123.         ("offsets" "offsets_METHOD")
  124.         ("borderRect" "borderRect_METHOD")
  125.         ("titleRect" "titleRect_METHOD")
  126.         }
  127.     }
  128.  
  129. /*********** IvarConversion: NSBrowser *************/
  130.     
  131. replace "@implementation <isKindOf(NSBrowser) class><w w1><any class_impl><w w2>@end" with same
  132.     within ("<class_impl>") {
  133.     replacemethod "<t protect_me>" with "<t protected>"
  134.         where ("<protect_me>" "<protected>") isOneOf {
  135.         ("target" "target_METHOD")
  136.         ("delegate" "delegate_METHOD")
  137.         ("action" "action_METHOD")
  138.         ("doubleAction" "doubleAction_METHOD")
  139.         ("matrixClass" "matrixClass_METHOD")
  140.         ("cellPrototype" "cellPrototype_METHOD")
  141.         ("pathSeparator" "pathSeparator_METHOD")
  142.         }
  143.     }
  144.     
  145. replace "@implementation <isKindOf(NSBrowser) class><w w1><any class_impl><w w2>@end" with same
  146.     within ("<class_impl>") {
  147.     replace "target" with "[self target]"
  148.     replace "delegate" with "[self delegate]"
  149.     replace "action" with "[self action]"
  150.     replace "doubleAction" with "[self doubleAction]"
  151.     replace "matrixClass" with "[self matrixClass]"
  152.     replace "cellPrototype" with "[self cellPrototype]"
  153.     replace "pathSeparator" with "[self pathSeparator]"
  154.     }
  155.     
  156. replace "@implementation <isKindOf(NSBrowser) class><w w1><any class_impl><w w2>@end" with same
  157.     within ("<class_impl>") {
  158.     replace "<t protected>" with "<t protect_me>"
  159.         where ("<protect_me>" "<protected>") isOneOf {
  160.         ("target" "target_METHOD")
  161.         ("delegate" "delegate_METHOD")
  162.         ("action" "action_METHOD")
  163.         ("doubleAction" "doubleAction_METHOD")
  164.         ("matrixClass" "matrixClass_METHOD")
  165.         ("cellPrototype" "cellPrototype_METHOD")
  166.         ("pathSeparator" "pathSeparator_METHOD")
  167.         }
  168.     }
  169.     
  170. /*********** IvarConversion: NSButtonCell *************/
  171.     
  172. replace "@implementation <isKindOf(NSButtonCell) class><w w1><any class_impl><w w2>@end" with same
  173.     within ("<class_impl>") {
  174.     replacemethod "<t protect_me>" with "<t protected>"
  175.         where ("<protect_me>" "<protected>") isOneOf {
  176.         ("sound" "sound_METHOD")
  177.         ("keyEquivalent" "keyEquivalent_METHOD")
  178.         ("keyEquivalentModifierMask" "keyEquivalentModifierMask_METHOD")
  179.         }
  180.     }
  181.     
  182. replace "@implementation <isKindOf(NSButtonCell) class><w w1><any class_impl><w w2>@end" with same
  183.     within ("<class_impl>") {
  184.     replace "sound" with "[self sound]"
  185.     replace "bcFlags1.bordered" with "[self bordered]"
  186.     replace "bcFlags2.transparent" with "[self transparent]"
  187.     replace "keyEquivalent" with "[self keyEquivalent]"
  188.     replace "keyEquivalentModifierMask" with "[self keyEquivalentModifierMask]"
  189.     replace "bcFlags1.pushIn" with "(([self highlightsBy] & NSPushInCellMask)? YES:NO)"
  190.     replace "bcFlags1.lightByContents" with "(([self highlightsBy] & NSContentsCellMask)? YES:NO)"
  191.     replace "bcFlags1.lightByBackground" with "(([self highlightsBy] & NSChangeBackgroundCellMask)? YES:NO)"
  192.     replace "bcFlags1.lightByGray" with "(([self highlightsBy] & NSChangeGrayCellMask)? YES:NO)"
  193.     replace "bcFlags1.changeContents" with "(([self showsStateBy] & NSContentsCellMask)? YES:NO)"
  194.     replace "bcFlags1.changeBackground" with "(([self showsStateBy] & NSChangeBackgroundCellMask)? YES:NO)"
  195.     replace "bcFlags1.changeGray" with "(([self showsStateBy] & NSChangeGrayCellMask)? YES:NO)"
  196.     }
  197.     
  198. replace "@implementation <isKindOf(NSButtonCell) class><w w1><any class_impl><w w2>@end" with same
  199.     within ("<class_impl>") {
  200.     replace "<t protected>" with "<t protect_me>"
  201.         where ("<protect_me>" "<protected>") isOneOf {
  202.         ("sound" "sound_METHOD")
  203.         ("keyEquivalent" "keyEquivalent_METHOD")
  204.         ("keyEquivalentModifierMask" "keyEquivalentModifierMask_METHOD")
  205.         }
  206.     }
  207.     
  208. /*********** IvarConversion: NSCell *************/
  209.     
  210. replace "@implementation <isKindOf(NSCell) class><w w1><any class_impl><w w2>@end" with same
  211.     within ("<class_impl>") {
  212.     replacemethod "<t protect_me>" with "<t protected>"
  213.         where ("<protect_me>" "<protected>") isOneOf {
  214.         ("contents" "contents_METHOD")
  215.         }
  216.     }
  217.     
  218. replace "@implementation <isKindOf(NSCell) class><w w1><any class_impl><w w2>@end" with same
  219.     within ("<class_impl>") {
  220.     replace "contents" with "[self stringValue]"
  221.     replace "cFlags1.state" with "[self state]"
  222.     replace "cFlags1.highlighted" with "[self isHighlighted]"
  223.     replace "cFlags1.disabled" with "[self isEnabled]"
  224.     replace "cFlags1.editable" with "[self editable]"
  225.     replace "cFlags1.type" with "[self type]"
  226.     replace "cFlags1.alignment" with "[self alignment]"
  227.     replace "cFlags1.bordered" with "[self isBordered]"
  228.     replace "cFlags1.bezeled" with "[self isBezeled]"
  229.     replace "cFlags1.selectable" with "[self isSelectable]"
  230.     replace "cFlags1.scrollable" with "[self isScrollable]"
  231.     replace "cFlags1.entryType" with "[self entryType]"
  232.     replace "cFlags2.continuous" with "[self isContinuous]"
  233.     }
  234.     
  235. replace "@implementation <isKindOf(NSCell) class><w w1><any class_impl><w w2>@end" with same
  236.     within ("<class_impl>") {
  237.     replace "<t protected>" with "<t protect_me>"
  238.         where ("<protect_me>" "<protected>") isOneOf {
  239.         ("contents" "contents_METHOD")
  240.         }
  241.     }
  242.     
  243. /*********** IvarConversion: NSClipView *************/
  244.  
  245. replace "@implementation <isKindOf(NSClipView) class><w w1><any class_impl><w w2>@end" with same
  246.     within ("<class_impl>") {
  247.     replacemethod "<t protect_me>" with "<t protected>"
  248.         where ("<protect_me>" "<protected>") isOneOf {
  249.         ("docView" "docView_METHOD")
  250.         ("cursor" "cursor_METHOD")
  251.         }
  252.     }
  253.     
  254. replace "@implementation <isKindOf(NSClipView) class><w w1><any class_impl><w w2>@end" with same
  255.     within ("<class_impl>") {
  256.     replace "docView" with "[self documentView]"
  257.     replace "cursor" with "[self documentCursor]"
  258.     }
  259.     
  260. replace "@implementation <isKindOf(NSClipView) class><w w1><any class_impl><w w2>@end" with same
  261.     within ("<class_impl>") {
  262.     replace "<t protected>" with "<t protect_me>"
  263.         where ("<protect_me>" "<protected>") isOneOf {
  264.         ("docView" "docView_METHOD")
  265.         ("cursor" "cursor_METHOD")
  266.         }
  267.     }
  268.     
  269. /*********** IvarConversion: NSColorPicker *************/
  270.     
  271. replace "@implementation <isKindOf(NSColorPicker) class><w w1><any class_impl><w w2>@end" with same
  272.     within ("<class_impl>") {
  273.     replacemethod "<t protect_me>" with "<t protected>"
  274.         where ("<protect_me>" "<protected>") isOneOf {
  275.         ("colorPanel" "colorPanel_METHOD")
  276.         }
  277.     }
  278.     
  279. replace "@implementation <isKindOf(NSColorPicker) class><w w1><any class_impl><w w2>@end" with same
  280.     within ("<class_impl>") {
  281.     replace "colorPanel" with "[self colorPanel]"
  282.     }
  283.     
  284. replace "@implementation <isKindOf(NSColorPicker) class><w w1><any class_impl><w w2>@end" with same
  285.     within ("<class_impl>") {
  286.     replace "<t protected>" with "<t protect_me>"
  287.         where ("<protect_me>" "<protected>") isOneOf {
  288.         ("colorPanel" "colorPanel_METHOD")
  289.         }
  290.     }
  291.     
  292. /*********** IvarConversion: NSColorWell *************/
  293.         
  294. replace "@implementation <isKindOf(NSColorWell) class><w w1><any class_impl><w w2>@end" with same
  295.     within ("<class_impl>") {
  296.     replacemethod "<t protect_me>" with "<t protected>"
  297.         where ("<protect_me>" "<protected>") isOneOf {
  298.         ("color" "color_METHOD")
  299.         }
  300.     }
  301.     
  302. replace "@implementation <isKindOf(NSColorWell) class><w w1><any class_impl><w w2>@end" with same
  303.     within ("<class_impl>") {
  304.     replace "color" with "[self color]"
  305.     }
  306.     
  307. replace "@implementation <isKindOf(NSColorWell) class><w w1><any class_impl><w w2>@end" with same
  308.     within ("<class_impl>") {
  309.     replace "<t protected>" with "<t protect_me>"
  310.         where ("<protect_me>" "<protected>") isOneOf {
  311.         ("color" "color_METHOD")
  312.         }
  313.     }
  314.     
  315. /*********** IvarConversion: NSControl *************/
  316.     
  317. replace "@implementation <isKindOf(NSControl) class><w w1><any class_impl><w w2>@end" with same
  318.     within ("<class_impl>") {
  319.     replacemethod "<t protect_me>" with "<t protected>"
  320.         where ("<protect_me>" "<protected>") isOneOf {
  321.         ("tag" "tag_METHOD")
  322.         ("cell" "cell_METHOD")
  323.         }
  324.     }
  325.     
  326. replace "@implementation <isKindOf(NSControl) class><w w1><any class_impl><w w2>@end" with same
  327.     within ("<class_impl>") {
  328.     replace "tag" with "[self tag]"
  329.     replace "cell" with "[self cell]"
  330.     replace "conFlags.enabled" with "[self isEnabled]"
  331.     replace "conFlags.ignoreMultiClick" with "[self ignoresMultiClick]"
  332.     }
  333.     
  334. replace "@implementation <isKindOf(NSControl) class><w w1><any class_impl><w w2>@end" with same
  335.     within ("<class_impl>") {
  336.     replace "<t protected>" with "<t protect_me>"
  337.         where ("<protect_me>" "<protected>") isOneOf {
  338.         ("tag" "tag_METHOD")
  339.         ("cell" "cell_METHOD")
  340.         }
  341.     }
  342.     
  343. /*********** IvarConversion: NSCursor *************/
  344.  
  345. replace "@implementation <isKindOf(NSCursor) class><w w1><any class_impl><w w2>@end" with same
  346.     within ("<class_impl>") {
  347.     replacemethod "<t protect_me>" with "<t protected>"
  348.         where ("<protect_me>" "<protected>") isOneOf {
  349.         ("hotSpot" "hotSpot_METHOD")
  350.         ("image" "image_METHOD")
  351.         }
  352.     }
  353.     
  354. replace "@implementation <isKindOf(NSCursor) class><w w1><any class_impl><w w2>@end" with same
  355.     within ("<class_impl>") {
  356.     replace "hotSpot" with "[self hotSpot]"
  357.     replace "image" with "[self image]"
  358.     }
  359.     
  360. replace "@implementation <isKindOf(NSCursor) class><w w1><any class_impl><w w2>@end" with same
  361.     within ("<class_impl>") {
  362.     replace "<t protected>" with "<t protect_me>"
  363.         where ("<protect_me>" "<protected>") isOneOf {
  364.         ("hotSpot" "hotSpot_METHOD")
  365.         ("image" "image_METHOD")
  366.         }
  367.     }
  368.     
  369. /*********** IvarConversion: NSCustomImageRep *************/
  370.     
  371. replace "@implementation <isKindOf(NSCustomImageRep) class><w w1><any class_impl><w w2>@end" with same
  372.     within ("<class_impl>") {
  373.     replacemethod "<t protect_me>" with "<t protected>"
  374.         where ("<protect_me>" "<protected>") isOneOf {
  375.         ("drawMethod" "drawMethod_METHOD")
  376.         ("drawObject" "drawObject_METHOD")
  377.         }
  378.     }
  379.     
  380. replace "@implementation <isKindOf(NSCustomImageRep) class><w w1><any class_impl><w w2>@end" with same
  381.     within ("<class_impl>") {
  382.     replace "drawMethod" with "[self drawSelector]"
  383.     replace "drawObject" with "[self delegate]"
  384.     }
  385.     
  386. replace "@implementation <isKindOf(NSCustomImageRep) class><w w1><any class_impl><w w2>@end" with same
  387.     within ("<class_impl>") {
  388.     replace "<t protected>" with "<t protect_me>"
  389.         where ("<protect_me>" "<protected>") isOneOf {
  390.         ("drawMethod" "drawMethod_METHOD")
  391.         ("drawObject" "drawObject_METHOD")
  392.         }
  393.     }
  394.     
  395. /*********** IvarConversion: NSFont *************/
  396.     
  397. replace "@implementation <isKindOf(NSFont) class><w w1><any class_impl><w w2>@end" with same
  398.     within ("<class_impl>") {
  399.     replacemethod "<t protect_me>" with "<t protected>"
  400.         where ("<protect_me>" "<protected>") isOneOf {
  401.         ("size" "size_METHOD")
  402.         ("matrix" "matrix_METHOD")
  403.         }
  404.     }
  405.     
  406. replace "@implementation <isKindOf(NSFont) class><w w1><any class_impl><w w2>@end" with same
  407.     within ("<class_impl>") {
  408.     replace "size" with "[self pointSize]"
  409.     replace "matrix" with "[self matrix]"
  410.     replace "fFlags.isScreenFont" with "([self screenFont] == self)"
  411.     }
  412.     
  413. replace "@implementation <isKindOf(NSFont) class><w w1><any class_impl><w w2>@end" with same
  414.     within ("<class_impl>") {
  415.     replace "<t protected>" with "<t protect_me>"
  416.         where ("<protect_me>" "<protected>") isOneOf {
  417.         ("size" "size_METHOD")
  418.         ("matrix" "matrix_METHOD")
  419.         }
  420.     }
  421.     
  422. /*********** IvarConversion: NSFontManager *************/
  423.     
  424. replace "@implementation <isKindOf(NSFontManager) class><w w1><any class_impl><w w2>@end" with same
  425.     within ("<class_impl>") {
  426.     replacemethod "<t protect_me>" with "<t protected>"
  427.         where ("<protect_me>" "<protected>") isOneOf {
  428.         ("action" "action_METHOD")
  429.         ("selFont" "selFont_METHOD")
  430.         ("delegate" "delegate_METHOD")
  431.         ("panel" "panel_METHOD")
  432.         ("menu" "menu_METHOD")
  433.         }
  434.     }
  435.     
  436. replace "@implementation <isKindOf(NSFontManager) class><w w1><any class_impl><w w2>@end" with same
  437.     within ("<class_impl>") {
  438.     replace "action" with "[self action]"
  439.     replace "selFont" with "[self selectedFont]"
  440.     replace "fmFlags.multipleFont" with "[self isMultiple]"
  441.     replace "fmFlags.disabled" with "[self isEnabled]"
  442.     replace "delegate" with "[self delegate]"
  443.     replace "panel" with "[self fontPanel:NO]"
  444.     replace "menu" with "[self fontMenu:NO]"
  445.     }
  446.     
  447. replace "@implementation <isKindOf(NSFontManager) class><w w1><any class_impl><w w2>@end" with same
  448.     within ("<class_impl>") {
  449.     replace "<t protected>" with "<t protect_me>"
  450.         where ("<protect_me>" "<protected>") isOneOf {
  451.         ("action" "action_METHOD")
  452.         ("selFont" "selFont_METHOD")
  453.         ("delegate" "delegate_METHOD")
  454.         ("panel" "panel_METHOD")
  455.         ("menu" "menu_METHOD")
  456.         }
  457.     }
  458.     
  459. /*********** IvarConversion: NSFontPanel *************/
  460.     
  461. replace "@implementation <isKindOf(NSFontPanel) class><w w1><any class_impl><w w2>@end" with same
  462.     within ("<class_impl>") {
  463.     replacemethod "<t protect_me>" with "<t protected>"
  464.         where ("<protect_me>" "<protected>") isOneOf {
  465.         ("accessoryView" "accessoryView_METHOD")
  466.         }
  467.     }
  468.     
  469. replace "@implementation <isKindOf(NSFontPanel) class><w w1><any class_impl><w w2>@end" with same
  470.     within ("<class_impl>") {
  471.     replace "accessoryView" with "[self accessoryView]"
  472.     }
  473.     
  474. replace "@implementation <isKindOf(NSFontPanel) class><w w1><any class_impl><w w2>@end" with same
  475.     within ("<class_impl>") {
  476.     replace "<t protected>" with "<t protect_me>"
  477.         where ("<protect_me>" "<protected>") isOneOf {
  478.         ("accessoryView" "accessoryView_METHOD")
  479.         }
  480.     }
  481.     
  482. /*********** IvarConversion: NSFormCell *************/
  483.     
  484. replace "@implementation <isKindOf(NSFormCell) class><w w1><any class_impl><w w2>@end" with same
  485.     within ("<class_impl>") {
  486.     replacemethod "<t protect_me>" with "<t protected>"
  487.         where ("<protect_me>" "<protected>") isOneOf {
  488.         ("titleWidth" "titleWidth_METHOD")
  489.         }
  490.     }
  491.     
  492. replace "@implementation <isKindOf(NSFormCell) class><w w1><any class_impl><w w2>@end" with same
  493.     within ("<class_impl>") {
  494.     replace "titleWidth" with "[self titleWidth]"
  495.     }
  496.     
  497. replace "@implementation <isKindOf(NSFormCell) class><w w1><any class_impl><w w2>@end" with same
  498.     within ("<class_impl>") {
  499.     replace "<t protected>" with "<t protect_me>"
  500.         where ("<protect_me>" "<protected>") isOneOf {
  501.         ("titleWidth" "titleWidth_METHOD")
  502.         }
  503.     }
  504.     
  505. /*********** IvarConversion: NSImageRep *************/
  506.  
  507. replace "@implementation <isKindOf(NSImageRep) class><w w1><any class_impl><w w2>@end" with same
  508.     within ("<class_impl>") {
  509.     replacemethod "<t protect_me>" with "<t protected>"
  510.         where ("<protect_me>" "<protected>") isOneOf {
  511.         ("size" "size_METHOD")
  512.         }
  513.     }
  514.     
  515. replace "@implementation <isKindOf(NSImageRep) class><w w1><any class_impl><w w2>@end" with same
  516.     within ("<class_impl>") {
  517.     replace "size" with "[self size]"
  518.     }
  519.     
  520. replace "@implementation <isKindOf(NSImageRep) class><w w1><any class_impl><w w2>@end" with same
  521.     within ("<class_impl>") {
  522.     replace "<t protected>" with "<t protect_me>"
  523.         where ("<protect_me>" "<protected>") isOneOf {
  524.         ("size" "size_METHOD")
  525.         }
  526.     }
  527.     
  528. /*********** IvarConversion: NSImage *************/
  529.     
  530. replace "@implementation <isKindOf(NSImage) class><w w1><any class_impl><w w2>@end" with same
  531.     within ("<class_impl>") {
  532.     replacemethod "<t protect_me>" with "<t protected>"
  533.         where ("<protect_me>" "<protected>") isOneOf {
  534.         ("name" "name_METHOD")
  535.         }
  536.     }
  537.     
  538. replace "@implementation <isKindOf(NSImage) class><w w1><any class_impl><w w2>@end" with same
  539.     within ("<class_impl>") {
  540.     replace "name" with "[self name]"
  541.     }
  542.     
  543. replace "@implementation <isKindOf(NSImage) class><w w1><any class_impl><w w2>@end" with same
  544.     within ("<class_impl>") {
  545.     replace "<t protected>" with "<t protect_me>"
  546.         where ("<protect_me>" "<protected>") isOneOf {
  547.         ("name" "name_METHOD")
  548.         }
  549.     }
  550.     
  551. /*********** IvarConversion: NSMatrix *************/
  552.  
  553. replace "@implementation <isKindOf(NSMatrix) class><w w1><any class_impl><w w2>@end" with same
  554.     within ("<class_impl>") {
  555.     replacemethod "<t protect_me>" with "<t protected>"
  556.         where ("<protect_me>" "<protected>") isOneOf {
  557.         ("cellList" "cellList_METHOD")
  558.         ("target" "target_METHOD")
  559.         ("action" "action_METHOD")
  560.         ("selectedCell" "selectedCell_METHOD")
  561.         ("selectedRow" "selectedRow_METHOD")
  562.         ("selectedCol" "selectedCol_METHOD")
  563.         ("cellSize" "cellSize_METHOD")
  564.         ("intercell" "intercell_METHOD")
  565.         ("font" "font_METHOD")
  566.         ("protoCell" "protoCell_METHOD")
  567.         ("cellClass" "cellClass_METHOD")
  568.         ("nextText" "nextText_METHOD")
  569.         ("previousText" "previousText_METHOD")
  570.         ("doubleAction" "doubleAction_METHOD")
  571.         ("errorAction" "errorAction_METHOD")
  572.         ("errorAction" "errorAction_METHOD")
  573.         }
  574.     }
  575.     
  576. replace "@implementation <isKindOf(NSMatrix) class><w w1><any class_impl><w w2>@end" with same
  577.     within ("<class_impl>") {
  578.     replace "cellList" with "[self cells]"
  579.     replace "target" with "[self target]"
  580.     replace "action" with "[self action]"
  581.     replace "selectedCell" with "[self selectedCell]"
  582.     replace "selectedRow" with "[self selectedRow]"
  583.     replace "selectedCol" with "[self selectedColumn]"
  584.     replace "cellSize" with "[self cellSize]"
  585.     replace "intercell" with "[self intercellSpacing]"
  586.     replace "font" with "[self font]"
  587.     replace "protoCell" with "[self prototype]"
  588.     replace "cellClass" with "[self cellClass]"
  589.     replace "nextText" with "[self nextText]"
  590.     replace "previousText" with "[self previousText]"
  591.     replace "doubleAction" with "[self doubleAction]"
  592.     replace "errorAction" with "[self errorAction]"
  593.     replace "textDelegate" with "[self delegate]"
  594.     replace "mFlags.allowEmptySel" with "[self allowsEmptySelection]"
  595.     replace "mFlags.autoscroll" with "[self isAutoscroll]"
  596.     replace "mFlags.selectionByRect" with "[self isSelectionByRect]"
  597.     replace "mFlags.drawsCellBackground" with "[self drawsCellBackground]"
  598.     replace "mFlags.drawsBackground" with "[self drawsBackground]"
  599.     replace "mFlags.highlightMode" with "([self mode] == NSHighlightModeMatrix)"
  600.     replace "mFlags.radioMode" with "([self mode] == NSRadioModeMatrix)"
  601.     replace "mFlags.listMode" with "([self mode] == NSListModeMatrix)"
  602.     }
  603.     
  604. replace "@implementation <isKindOf(NSMatrix) class><w w1><any class_impl><w w2>@end" with same
  605.     within ("<class_impl>") {
  606.     replace "<t protected>" with "<t protect_me>"
  607.         where ("<protect_me>" "<protected>") isOneOf {
  608.         ("cellList" "cellList_METHOD")
  609.         ("target" "target_METHOD")
  610.         ("action" "action_METHOD")
  611.         ("selectedCell" "selectedCell_METHOD")
  612.         ("selectedRow" "selectedRow_METHOD")
  613.         ("selectedCol" "selectedCol_METHOD")
  614.         ("cellSize" "cellSize_METHOD")
  615.         ("intercell" "intercell_METHOD")
  616.         ("font" "font_METHOD")
  617.         ("protoCell" "protoCell_METHOD")
  618.         ("cellClass" "cellClass_METHOD")
  619.         ("nextText" "nextText_METHOD")
  620.         ("previousText" "previousText_METHOD")
  621.         ("doubleAction" "doubleAction_METHOD")
  622.         ("errorAction" "errorAction_METHOD")
  623.         ("errorAction" "errorAction_METHOD")
  624.         }
  625.     }
  626.     
  627. /*********** IvarConversion: NSMenu *************/
  628.  
  629. replace "@implementation <isKindOf(NSMenu) class><w w1><any class_impl><w w2>@end" with same
  630.     within ("<class_impl>") {
  631.     replacemethod "<t protect_me>" with "<t protected>"
  632.         where ("<protect_me>" "<protected>") isOneOf {
  633.         ("supermenu" "supermenu_METHOD")
  634.         ("matrix" "matrix_METHOD")
  635.         ("attachedMenu" "attachedMenu_METHOD")
  636.         }
  637.     }
  638.     
  639. replace "@implementation <isKindOf(NSMenu) class><w w1><any class_impl><w w2>@end" with same
  640.     within ("<class_impl>") {
  641.     replace "supermenu" with "[self supermenu]"
  642.     replace "matrix" with "[self itemMatrix]"
  643.     replace "attachedMenu" with "[self attachedMenu]"
  644.     replace "menuFlags.autoenablesItems" with "[self autoenablesItems]"
  645.     replace "menuFlags.attached" with "[self isAttached]"
  646.     replace "menuFlags.tornOff" with "[self isTornOff]"
  647.     }
  648.     
  649. replace "@implementation <isKindOf(NSMenu) class><w w1><any class_impl><w w2>@end" with same
  650.     within ("<class_impl>") {
  651.     replace "<t protected>" with "<t protect_me>"
  652.         where ("<protect_me>" "<protected>") isOneOf {
  653.         ("supermenu" "supermenu_METHOD")
  654.         ("matrix" "matrix_METHOD")
  655.         ("attachedMenu" "attachedMenu_METHOD")
  656.         }
  657.     }
  658.     
  659. /*********** IvarConversion: NSOpenPanel *************/
  660.     
  661. replace "@implementation <isKindOf(NSOpenPanel) class><w w1><any class_impl><w w2>@end" with same
  662.     within ("<class_impl>") {
  663.     replacemethod "<t protect_me>" with "<t protected>"
  664.         where ("<protect_me>" "<protected>") isOneOf {
  665.         ("allowMultiple" "allowMultiple_METHOD")
  666.         }
  667.     }
  668.     
  669. replace "@implementation <isKindOf(NSOpenPanel) class><w w1><any class_impl><w w2>@end" with same
  670.     within ("<class_impl>") {
  671.     replace "allowMultiple" with "[self allowsMultipleSelection]"
  672.     }
  673.     
  674. replace "@implementation <isKindOf(NSOpenPanel) class><w w1><any class_impl><w w2>@end" with same
  675.     within ("<class_impl>") {
  676.     replace "<t protected>" with "<t protect_me>"
  677.         where ("<protect_me>" "<protected>") isOneOf {
  678.         ("allowMultiple" "allowMultiple_METHOD")
  679.         }
  680.     }
  681.     
  682. /*********** IvarConversion: NSPageLayout *************/
  683.  
  684. replace "@implementation <isKindOf(NSPageLayout) class><w w1><any class_impl><w w2>@end" with same
  685.     within ("<class_impl>") {
  686.     replacemethod "<t protect_me>" with "<t protected>"
  687.         where ("<protect_me>" "<protected>") isOneOf {
  688.         ("accessoryView" "accessoryView_METHOD")
  689.         }
  690.     }
  691.     
  692. replace "@implementation <isKindOf(NSPageLayout) class><w w1><any class_impl><w w2>@end" with same
  693.     within ("<class_impl>") {
  694.     replace "accessoryView" with "[self accessoryView]"
  695.     }
  696.     
  697. replace "@implementation <isKindOf(NSPageLayout) class><w w1><any class_impl><w w2>@end" with same
  698.     within ("<class_impl>") {
  699.     replace "<t protected>" with "<t protect_me>"
  700.         where ("<protect_me>" "<protected>") isOneOf {
  701.         ("accessoryView" "accessoryView_METHOD")
  702.         }
  703.     }
  704.     
  705. /*********** IvarConversion: NSPrinter *************/
  706.  
  707. replace "@implementation <isKindOf(NSPrinter) class><w w1><any class_impl><w w2>@end" with same
  708.     within ("<class_impl>") {
  709.     replacemethod "<t protect_me>" with "<t protected>"
  710.         where ("<protect_me>" "<protected>") isOneOf {
  711.         ("printerName" "printerName_METHOD")
  712.         ("hostName" "hostName_METHOD")
  713.         ("domainName" "domainName_METHOD")
  714.         ("printerType" "printerType_METHOD")
  715.         }
  716.     }
  717.         
  718. replace "@implementation <isKindOf(NSPrinter) class><w w1><any class_impl><w w2>@end" with same
  719.     within ("<class_impl>") {
  720.     replace "printerName" with "[self name]"
  721.     replace "hostName" with "[self host]"
  722.     replace "domainName" with "[self domain]"
  723.     replace "printerType" with "[self type]"
  724.     }
  725.         
  726. replace "@implementation <isKindOf(NSPrinter) class><w w1><any class_impl><w w2>@end" with same
  727.     within ("<class_impl>") {
  728.     replace "<t protected>" with "<t protect_me>"
  729.         where ("<protect_me>" "<protected>") isOneOf {
  730.         ("printerName" "printerName_METHOD")
  731.         ("hostName" "hostName_METHOD")
  732.         ("domainName" "domainName_METHOD")
  733.         ("printerType" "printerType_METHOD")
  734.         }
  735.     }
  736.         
  737. /*********** IvarConversion: NSPrintInfo *************/
  738.  
  739. replace "@implementation <isKindOf(NSPrintInfo) class><w w1><any class_impl><w w2>@end" with same
  740.     within ("<class_impl>") {
  741.     replacemethod "<t protect_me>" with "<t protected>"
  742.         where ("<protect_me>" "<protected>") isOneOf {
  743.         ("paperType" "paperType_METHOD")
  744.         ("leftPageMargin" "leftPageMargin_METHOD")
  745.         ("rightPageMargin" "rightPageMargin_METHOD")
  746.         ("topPageMargin" "topPageMargin_METHOD")
  747.         ("bottomPageMargin" "bottomPageMargin_METHOD")
  748.         ("orientation" "orientation_METHOD")
  749.         ("horizCentered" "horizCentered_METHOD")
  750.         ("vertCentered" "vertCentered_METHOD")
  751.         ("horizPagination" "horizPagination_METHOD")
  752.         ("vertPagination" "vertPagination_METHOD")
  753.         ("printerObject" "printerObject_METHOD")
  754.         ("pageOrder" "pageOrder_METHOD")
  755.         ("currentPage" "currentPage_METHOD")
  756.         ("context" "context_METHOD")
  757.         ("printerType" "printerType_METHOD")
  758.         ("printerHost" "printerHost_METHOD")
  759.         ("scalingFactor" "scalingFactor_METHOD")
  760.         ("allPages" "allPages_METHOD")
  761.         ("firstPage" "firstPage_METHOD")
  762.         ("lastPage" "lastPage_METHOD")
  763.         ("copies" "copies_METHOD")
  764.         ("pagesPerSheet" "pagesPerSheet_METHOD")
  765.         ("reversePageOrder" "reversePageOrder_METHOD")
  766.         ("manualFeed" "manualFeed_METHOD")
  767.         ("resolution" "resolution_METHOD")
  768.         }
  769.     }
  770.     
  771. replace "@implementation <isKindOf(NSPrintInfo) class><w w1><any class_impl><w w2>@end" with same
  772.     within ("<class_impl>") {
  773.     replace "paperType" with "[self paperName]"
  774.     replace "leftPageMargin" with "[self leftMargin]"
  775.     replace "rightPageMargin" with "[self rightMargin]"
  776.     replace "topPageMargin" with "[self topMargin]"
  777.     replace "bottomPageMargin" with "[self bottomMargin]"
  778.     replace "orientation" with "[self orientation]"
  779.     replace "horizCentered" with "[self isHorizontallyCentered]"
  780.     replace "vertCentered" with "[self isVerticallyCentered]"
  781.     replace "horizPagination" with "[self horizontalPagination]"
  782.     replace "vertPagination" with "[self verticalPagination]"
  783.     replace "printerObject" with "[self printer]"
  784.     replace "pageOrder" with "[[NSPrintOperation currentOperation] pageOrder]"
  785.     replace "currentPage" with "[[NSPrintOperation currentOperation] currentPage]"
  786.     replace "context" with "[[NSPrintOperation currentOperation] context]"
  787.     replace "printerName" with "[[self printer] name]"
  788.     replace "printerType" with "[[self printer] type]"
  789.     replace "printerHost" with "[[self printer] host]"
  790.     replace "scalingFactor" with "[[[self dictionary] objectForKey:NSPrintScalingFactor] floatValue]"
  791.     replace "allPages" with "[[[self dictionary] objectForKey:NSPrintAllPages] boolValue]"
  792.     replace "firstPage" with "[[[self dictionary] objectForKey:NSPrintFirstPage] intValue]"
  793.     replace "lastPage" with "[[[self dictionary] objectForKey:NSPrintLastPage] intValue]"
  794.     replace "copies" with "[[[self dictionary] objectForKey:NSPrintCopies] intValue]"
  795.     replace "pagesPerSheet" with "[[[self dictionary] objectForKey:NSPrintPagesPerSheet] intValue]"
  796.     replace "reversePageOrder" with "[[[self dictionary] objectForKey:NSPrintReversePageOrder] boolValue]"
  797.     replace "manualFeed" with "[[[self dictionary] objectForKey:NSPrintPaperFeed] isEqual:NSPrintManualFeed]"    
  798.     replace "resolution" with "[[self printer] intForKey:@\"DefaultResolution\" inTable:@\"PPD\"]"
  799.     }
  800.     
  801. replace "@implementation <isKindOf(NSPrintInfo) class><w w1><any class_impl><w w2>@end" with same
  802.     within ("<class_impl>") {
  803.     replace "<t protected>" with "<t protect_me>"
  804.         where ("<protect_me>" "<protected>") isOneOf {
  805.         ("paperType" "paperType_METHOD")
  806.         ("leftPageMargin" "leftPageMargin_METHOD")
  807.         ("rightPageMargin" "rightPageMargin_METHOD")
  808.         ("topPageMargin" "topPageMargin_METHOD")
  809.         ("bottomPageMargin" "bottomPageMargin_METHOD")
  810.         ("orientation" "orientation_METHOD")
  811.         ("horizCentered" "horizCentered_METHOD")
  812.         ("vertCentered" "vertCentered_METHOD")
  813.         ("horizPagination" "horizPagination_METHOD")
  814.         ("vertPagination" "vertPagination_METHOD")
  815.         ("printerObject" "printerObject_METHOD")
  816.         ("pageOrder" "pageOrder_METHOD")
  817.         ("currentPage" "currentPage_METHOD")
  818.         ("context" "context_METHOD")
  819.         ("printerType" "printerType_METHOD")
  820.         ("printerHost" "printerHost_METHOD")
  821.         ("scalingFactor" "scalingFactor_METHOD")
  822.         ("allPages" "allPages_METHOD")
  823.         ("firstPage" "firstPage_METHOD")
  824.         ("lastPage" "lastPage_METHOD")
  825.         ("copies" "copies_METHOD")
  826.         ("pagesPerSheet" "pagesPerSheet_METHOD")
  827.         ("reversePageOrder" "reversePageOrder_METHOD")
  828.         ("manualFeed" "manualFeed_METHOD")
  829.         ("resolution" "resolution_METHOD")
  830.         }
  831.     }
  832.     
  833. /*********** IvarConversion: NSPrintPanel *************/
  834.  
  835. replace "@implementation <isKindOf(NSPrintPanel) class><w w1><any class_impl><w w2>@end" with same
  836.     within ("<class_impl>") {
  837.     replacemethod "<t protect_me>" with "<t protected>"
  838.         where ("<protect_me>" "<protected>") isOneOf {
  839.         ("accessoryView" "accessoryView_METHOD")
  840.         }
  841.     }
  842.     
  843. replace "@implementation <isKindOf(NSPrintPanel) class><w w1><any class_impl><w w2>@end" with same
  844.     within ("<class_impl>") {
  845.     replace "accessoryView" with "[self accessoryView]"
  846.     }
  847.     
  848. replace "@implementation <isKindOf(NSPrintPanel) class><w w1><any class_impl><w w2>@end" with same
  849.     within ("<class_impl>") {
  850.     replace "<t protected>" with "<t protect_me>"
  851.         where ("<protect_me>" "<protected>") isOneOf {
  852.         ("accessoryView" "accessoryView_METHOD")
  853.         }
  854.     }
  855.     
  856. /*********** IvarConversion: NSSavePanel *************/
  857.  
  858. replace "@implementation <isKindOf(NSSavePanel) class><w w1><any class_impl><w w2>@end" with same
  859.     within ("<class_impl>") {
  860.     replacemethod "<t protect_me>" with "<t protected>"
  861.         where ("<protect_me>" "<protected>") isOneOf {
  862.         ("nextResponder" "nextResponder_METHOD")
  863.         }
  864.     }
  865.     
  866. replace "@implementation <isKindOf(NSSavePanel) class><w w1><any class_impl><w w2>@end" with same
  867.     within ("<class_impl>") {
  868.     replace "nextResponder" with "[self nextResponder]"
  869.     }
  870.     
  871. replace "@implementation <isKindOf(NSSavePanel) class><w w1><any class_impl><w w2>@end" with same
  872.     within ("<class_impl>") {
  873.     replace "<t protected>" with "<t protect_me>"
  874.         where ("<protect_me>" "<protected>") isOneOf {
  875.         ("nextResponder" "nextResponder_METHOD")
  876.         }
  877.     }
  878.     
  879. /*********** IvarConversion: NSSavePanel *************/
  880.     
  881. replace "@implementation <isKindOf(NSSavePanel) class><w w1><any class_impl><w w2>@end" with same
  882.     within ("<class_impl>") {
  883.     replacemethod "<t protect_me>" with "<t protected>"
  884.         where ("<protect_me>" "<protected>") isOneOf {
  885.         ("filename" "filename_METHOD")
  886.         ("directory" "directory_METHOD")
  887.         ("requiredType" "requiredType_METHOD")
  888.         ("accessoryView" "accessoryView_METHOD")
  889.         }
  890.     }
  891.     
  892. replace "@implementation <isKindOf(NSSavePanel) class><w w1><any class_impl><w w2>@end" with same
  893.     within ("<class_impl>") {
  894.     replace "filename" with "[self filename]"
  895.     replace "directory" with "[self directory]"
  896.     replace "requiredType" with "[self requiredFileType]"
  897.     replace "accessoryView" with "[self accessoryView]"
  898.     }
  899.     
  900. replace "@implementation <isKindOf(NSSavePanel) class><w w1><any class_impl><w w2>@end" with same
  901.     within ("<class_impl>") {
  902.     replace "<t protected>" with "<t protect_me>"
  903.         where ("<protect_me>" "<protected>") isOneOf {
  904.         ("filename" "filename_METHOD")
  905.         ("directory" "directory_METHOD")
  906.         ("requiredType" "requiredType_METHOD")
  907.         ("accessoryView" "accessoryView_METHOD")
  908.         }
  909.     }
  910.     
  911. /*********** IvarConversion: NSScroller *************/
  912.     
  913. replace "@implementation <isKindOf(NSScroller) class><w w1><any class_impl><w w2>@end" with same
  914.     within ("<class_impl>") {
  915.     replacemethod "<t protect_me>" with "<t protected>"
  916.         where ("<protect_me>" "<protected>") isOneOf {
  917.         ("curValue" "curValue_METHOD")
  918.         ("hitPart" "hitPart_METHOD")
  919.         ("target" "target_METHOD")
  920.         ("action" "action_METHOD")
  921.         }
  922.     }
  923.     
  924. replace "@implementation <isKindOf(NSScroller) class><w w1><any class_impl><w w2>@end" with same
  925.     within ("<class_impl>") {
  926.     replace "curValue" with "[self floatValue]"
  927.     replace "hitPart" with "[self hitPart]"
  928.     replace "target" with "[self target]"
  929.     replace "action" with "[self action]"
  930.     }
  931.     
  932. replace "@implementation <isKindOf(NSScroller) class><w w1><any class_impl><w w2>@end" with same
  933.     within ("<class_impl>") {
  934.     replace "<t protected>" with "<t protect_me>"
  935.         where ("<protect_me>" "<protected>") isOneOf {
  936.         ("curValue" "curValue_METHOD")
  937.         ("hitPart" "hitPart_METHOD")
  938.         ("target" "target_METHOD")
  939.         ("action" "action_METHOD")
  940.         }
  941.     }
  942.     
  943. /*********** IvarConversion: NSScrollView *************/
  944.     
  945. replace "@implementation <isKindOf(NSScrollView) class><w w1><any class_impl><w w2>@end" with same
  946.     within ("<class_impl>") {
  947.     replacemethod "<t protect_me>" with "<t protected>"
  948.         where ("<protect_me>" "<protected>") isOneOf {
  949.         ("vScroller" "vScroller_METHOD")
  950.         ("hScroller" "hScroller_METHOD")
  951.         }
  952.     }
  953.     
  954. replace "@implementation <isKindOf(NSScrollView) class><w w1><any class_impl><w w2>@end" with same
  955.     within ("<class_impl>") {
  956.     replace "vScroller" with "[self verticalScroller]"
  957.     replace "hScroller" with "[self horizontalScroller]"
  958.     }
  959.     
  960. replace "@implementation <isKindOf(NSScrollView) class><w w1><any class_impl><w w2>@end" with same
  961.     within ("<class_impl>") {
  962.     replace "<t protected>" with "<t protect_me>"
  963.         where ("<protect_me>" "<protected>") isOneOf {
  964.         ("vScroller" "vScroller_METHOD")
  965.         ("hScroller" "hScroller_METHOD")
  966.         }
  967.     }
  968.     
  969. /*********** IvarConversion: NSSliderCell *************/
  970.  
  971. replace "@implementation <isKindOf(NSSliderCell) class><w w1><any class_impl><w w2>@end" with same
  972.     within ("<class_impl>") {
  973.     replacemethod "<t protect_me>" with "<t protected>"
  974.         where ("<protect_me>" "<protected>") isOneOf {
  975.         ("maxValue" "maxValue_METHOD")
  976.         ("minValue" "minValue_METHOD")
  977.         ("trackRect" "trackRect_METHOD")
  978.         ("value" "value_METHOD")
  979.         }
  980.     }
  981.     
  982. replace "@implementation <isKindOf(NSSliderCell) class><w w1><any class_impl><w w2>@end" with same
  983.     within ("<class_impl>") {
  984.     replace "maxValue" with "[self maxValue]"
  985.     replace "minValue" with "[self minValue]"
  986.     replace "trackRect" with "[self trackRect]"
  987.     replace "value" with "[self doubleValue]"
  988.     }
  989.     
  990. replace "@implementation <isKindOf(NSSliderCell) class><w w1><any class_impl><w w2>@end" with same
  991.     within ("<class_impl>") {
  992.     replace "<t protected>" with "<t protect_me>"
  993.         where ("<protect_me>" "<protected>") isOneOf {
  994.         ("maxValue" "maxValue_METHOD")
  995.         ("minValue" "minValue_METHOD")
  996.         ("trackRect" "trackRect_METHOD")
  997.         ("value" "value_METHOD")
  998.         }
  999.     }
  1000.     
  1001. /*********** IvarConversion: NSSpellChecker *************/
  1002.  
  1003. replace "@implementation <isKindOf(NSSpellChecker) class><w w1><any class_impl><w w2>@end" with same
  1004.     within ("<class_impl>") {
  1005.     replacemethod "<t protect_me>" with "<t protected>"
  1006.         where ("<protect_me>" "<protected>") isOneOf {
  1007.         ("panel" "panel_METHOD")
  1008.         ("accessoryView" "accessoryView_METHOD")
  1009.         }
  1010.     }
  1011.     
  1012. replace "@implementation <isKindOf(NSSpellChecker) class><w w1><any class_impl><w w2>@end" with same
  1013.     within ("<class_impl>") {
  1014.     replace "panel" with "[self spellingPanel]"
  1015.     replace "accessoryView" with "[self accessoryView]"
  1016.     }
  1017.     
  1018. replace "@implementation <isKindOf(NSSpellChecker) class><w w1><any class_impl><w w2>@end" with same
  1019.     within ("<class_impl>") {
  1020.     replace "<t protected>" with "<t protect_me>"
  1021.         where ("<protect_me>" "<protected>") isOneOf {
  1022.         ("panel" "panel_METHOD")
  1023.         ("accessoryView" "accessoryView_METHOD")
  1024.         }
  1025.     }
  1026.     
  1027. /*********** IvarConversion: NSSpellServer *************/
  1028.     
  1029. replace "@implementation <isKindOf(NSSpellServer) class><w w1><any class_impl><w w2>@end" with same
  1030.     within ("<class_impl>") {
  1031.     replacemethod "<t protect_me>" with "<t protected>"
  1032.         where ("<protect_me>" "<protected>") isOneOf {
  1033.         ("delegate" "delegate_METHOD")
  1034.         }
  1035.     }
  1036.     
  1037. replace "@implementation <isKindOf(NSSpellServer) class><w w1><any class_impl><w w2>@end" with same
  1038.     within ("<class_impl>") {
  1039.     replace "delegate" with "[self delegate]"
  1040.     }
  1041.     
  1042. replace "@implementation <isKindOf(NSSpellServer) class><w w1><any class_impl><w w2>@end" with same
  1043.     within ("<class_impl>") {
  1044.     replace "<t protected>" with "<t protect_me>"
  1045.         where ("<protect_me>" "<protected>") isOneOf {
  1046.         ("delegate" "delegate_METHOD")
  1047.         }
  1048.     }
  1049.     
  1050. /*********** IvarConversion: NSSplitView *************/
  1051.  
  1052. replace "@implementation <isKindOf(NSSplitView) class><w w1><any class_impl><w w2>@end" with same
  1053.     within ("<class_impl>") {
  1054.     replacemethod "<t protect_me>" with "<t protected>"
  1055.         where ("<protect_me>" "<protected>") isOneOf {
  1056.         ("delegate" "delegate_METHOD")
  1057.         }
  1058.     }
  1059.     
  1060. replace "@implementation <isKindOf(NSSplitView) class><w w1><any class_impl><w w2>@end" with same
  1061.     within ("<class_impl>") {
  1062.     replace "delegate" with "[self delegate]"
  1063.     }
  1064.     
  1065. replace "@implementation <isKindOf(NSSplitView) class><w w1><any class_impl><w w2>@end" with same
  1066.     within ("<class_impl>") {
  1067.     replace "<t protected>" with "<t protect_me>"
  1068.         where ("<protect_me>" "<protected>") isOneOf {
  1069.         ("delegate" "delegate_METHOD")
  1070.         }
  1071.     }
  1072.     
  1073. /*********** IvarConversion: NSText *************/
  1074.  
  1075. replace "@implementation <isKindOf(NSText) class><w w1><any class_impl><w w2>@end" with same
  1076.     within ("<class_impl>") {
  1077.     replacemethod "<t protect_me>" with "<t protected>"
  1078.         where ("<protect_me>" "<protected>") isOneOf {
  1079.         ("breakTable" "breakTable_METHOD")
  1080.         ("clickTable" "clickTable_METHOD")
  1081.         ("preSelSmartTable" "preSelSmartTable_METHOD")
  1082.         ("postSelSmartTable" "postSelSmartTable_METHOD")
  1083.         ("charCategoryTable" "charCategoryTable_METHOD")
  1084.         ("delegateMethods" "delegateMethods_METHOD")
  1085.         ("charFilterFunc" "charFilterFunc_METHOD")
  1086.         ("textFilterFunc" "textFilterFunc_METHOD")
  1087.         ("scanFunc" "scanFunc_METHOD")
  1088.         ("drawFunc" "drawFunc_METHOD")
  1089.         ("delegate" "delegate_METHOD")
  1090.         ("tag" "tag_METHOD")
  1091.         ("cursorTE" "cursorTE_METHOD")
  1092.         ("firstTextBlock" "firstTextBlock_METHOD")
  1093.         ("lastTextBlock" "lastTextBlock_METHOD")
  1094.         ("theRuns" "theRuns_METHOD")
  1095.         ("typingRun" "typingRun_METHOD")
  1096.         ("theBreaks" "theBreaks_METHOD")
  1097.         ("growLine" "growLine_METHOD")
  1098.         ("textLength" "textLength_METHOD")
  1099.         ("maxY" "maxY_METHOD")
  1100.         ("maxX" "maxX_METHOD")
  1101.         ("bodyRect" "bodyRect_METHOD")
  1102.         ("borderWidth" "borderWidth_METHOD")
  1103.         ("clickCount" "clickCount_METHOD")
  1104.         ("sp0" "sp0_METHOD")
  1105.         ("spN" "spN_METHOD")
  1106.         ("anchorL" "anchorL_METHOD")
  1107.         ("anchorR" "anchorR_METHOD")
  1108.         ("maxSize" "maxSize_METHOD")
  1109.         ("minSize" "minSize_METHOD")
  1110.         ("textStream" "textStream_METHOD")
  1111.         }
  1112.     }
  1113.     
  1114. replace "@implementation <isKindOf(NSText) class><w w1><any class_impl><w w2>@end" with same
  1115.     within ("<class_impl>") {
  1116.     replace "breakTable" with "[self cStringTextInternalState]->breakTable"
  1117.     replace "clickTable" with "[self cStringTextInternalState]->clickTable"
  1118.     replace "preSelSmartTable" with "[self cStringTextInternalState]->preSelSmartTable"
  1119.     replace "postSelSmartTable" with "[self cStringTextInternalState]->postSelSmartTable"
  1120.     replace "charCategoryTable" with "[self cStringTextInternalState]->charCategoryTable"
  1121.     replace "delegateMethods" with "[self cStringTextInternalState]->delegateMethods"
  1122.     replace "charFilterFunc" with "[self cStringTextInternalState]->charFilterFunc"
  1123.     replace "textFilterFunc" with "[self cStringTextInternalState]->textFilterFunc"
  1124.     replace "scanFunc" with "[self cStringTextInternalState]->scanFunc"
  1125.     replace "drawFunc" with "[self cStringTextInternalState]->drawFunc"
  1126.     replace "delegate" with "[self cStringTextInternalState]->delegate"
  1127.     replace "tag" with "[self cStringTextInternalState]->tag"
  1128.     replace "cursorTE" with "[self cStringTextInternalState]->cursorTE"
  1129.     replace "firstTextBlock" with "[self cStringTextInternalState]->firstTextBlock"
  1130.     replace "lastTextBlock" with "[self cStringTextInternalState]->lastTextBlock"
  1131.     replace "theRuns" with "[self cStringTextInternalState]->theRuns"
  1132.     replace "typingRun" with "[self cStringTextInternalState]->typingRun"
  1133.     replace "theBreaks" with "[self cStringTextInternalState]->theBreaks"
  1134.     replace "growLine" with "[self cStringTextInternalState]->growLine"
  1135.     replace "textLength" with "[self cStringTextInternalState]->textLength"
  1136.     replace "maxY" with "[self cStringTextInternalState]->maxY"
  1137.     replace "maxX" with "[self cStringTextInternalState]->maxX"
  1138.     replace "bodyRect" with "[self cStringTextInternalState]->bodyRect"
  1139.     replace "borderWidth" with "[self cStringTextInternalState]->borderWidth"
  1140.     replace "clickCount" with "[self cStringTextInternalState]->clickCount"
  1141.     replace "sp0" with "[self cStringTextInternalState]->sp0"
  1142.     replace "spN" with "[self cStringTextInternalState]->spN"
  1143.     replace "anchorL" with "[self cStringTextInternalState]->anchorL"
  1144.     replace "anchorR" with "[self cStringTextInternalState]->anchorR"
  1145.     replace "maxSize" with "[self cStringTextInternalState]->maxSize"
  1146.     replace "minSize" with "[self cStringTextInternalState]->minSize"
  1147.     replace "tFlags.inClipView" with "[self cStringTextInternalState]->tFlags.inClipView"
  1148.     replace "tFlags.disableFontPanel" with "[self cStringTextInternalState]->tFlags.disableFontPanel"
  1149.     replace "tFlags.monoFont" with "[self cStringTextInternalState]->tFlags.monoFont"
  1150.     replace "tFlags.overstrikeDiacriticals" with "[self cStringTextInternalState]->tFlags.overstrikeDiacriticals"
  1151.     replace "tFlags.vertResizable" with "[self cStringTextInternalState]->tFlags.vertResizable"
  1152.     replace "tFlags.horizResizable" with "[self cStringTextInternalState]->tFlags.horizResizable"
  1153.     replace "tFlags.anchorIs0" with "[self cStringTextInternalState]->tFlags.anchorIs0"
  1154.     replace "tFlags.haveDown" with "[self cStringTextInternalState]->tFlags.haveDown"
  1155.     replace "tFlags.charWrap" with "[self cStringTextInternalState]->tFlags.charWrap"
  1156.     replace "tFlags.changeState" with "[self cStringTextInternalState]->tFlags.changeState"
  1157.     replace "textStream" with "[self cStringTextInternalState]->textStream"
  1158.     }
  1159.     
  1160. replace "@implementation <isKindOf(NSText) class><w w1><any class_impl><w w2>@end" with same
  1161.     within ("<class_impl>") {
  1162.     replace "<t protected>" with "<t protect_me>"
  1163.         where ("<protect_me>" "<protected>") isOneOf {
  1164.         ("breakTable" "breakTable_METHOD")
  1165.         ("clickTable" "clickTable_METHOD")
  1166.         ("preSelSmartTable" "preSelSmartTable_METHOD")
  1167.         ("postSelSmartTable" "postSelSmartTable_METHOD")
  1168.         ("charCategoryTable" "charCategoryTable_METHOD")
  1169.         ("delegateMethods" "delegateMethods_METHOD")
  1170.         ("charFilterFunc" "charFilterFunc_METHOD")
  1171.         ("textFilterFunc" "textFilterFunc_METHOD")
  1172.         ("scanFunc" "scanFunc_METHOD")
  1173.         ("drawFunc" "drawFunc_METHOD")
  1174.         ("delegate" "delegate_METHOD")
  1175.         ("tag" "tag_METHOD")
  1176.         ("cursorTE" "cursorTE_METHOD")
  1177.         ("firstTextBlock" "firstTextBlock_METHOD")
  1178.         ("lastTextBlock" "lastTextBlock_METHOD")
  1179.         ("theRuns" "theRuns_METHOD")
  1180.         ("typingRun" "typingRun_METHOD")
  1181.         ("theBreaks" "theBreaks_METHOD")
  1182.         ("growLine" "growLine_METHOD")
  1183.         ("textLength" "textLength_METHOD")
  1184.         ("maxY" "maxY_METHOD")
  1185.         ("maxX" "maxX_METHOD")
  1186.         ("bodyRect" "bodyRect_METHOD")
  1187.         ("borderWidth" "borderWidth_METHOD")
  1188.         ("clickCount" "clickCount_METHOD")
  1189.         ("sp0" "sp0_METHOD")
  1190.         ("spN" "spN_METHOD")
  1191.         ("anchorL" "anchorL_METHOD")
  1192.         ("anchorR" "anchorR_METHOD")
  1193.         ("maxSize" "maxSize_METHOD")
  1194.         ("minSize" "minSize_METHOD")
  1195.         ("textStream" "textStream_METHOD")
  1196.         }
  1197.     }
  1198.     
  1199. /*********** IvarConversion: NSTextField *************/
  1200.  
  1201. replace "@implementation <isKindOf(NSTextField) class><w w1><any class_impl><w w2>@end" with same
  1202.     within ("<class_impl>") {
  1203.     replacemethod "<t protect_me>" with "<t protected>"
  1204.         where ("<protect_me>" "<protected>") isOneOf {
  1205.         ("nextText" "nextText_METHOD")
  1206.         ("previousText" "previousText_METHOD")
  1207.         ("textDelegate" "textDelegate_METHOD")
  1208.         ("errorAction" "errorAction_METHOD")
  1209.         }
  1210.     }
  1211.  
  1212. replace "@implementation <isKindOf(NSTextField) class><w w1><any class_impl><w w2>@end" with same
  1213.     within ("<class_impl>") {
  1214.     replace "nextText" with "[self nextText]"
  1215.     replace "previousText" with "[self previousText]"
  1216.     replace "textDelegate" with "[self delegate]"
  1217.     replace "errorAction" with "[self errorAction]"
  1218.     }
  1219.  
  1220. replace "@implementation <isKindOf(NSTextField) class><w w1><any class_impl><w w2>@end" with same
  1221.     within ("<class_impl>") {
  1222.     replace "<t protected>" with "<t protect_me>"
  1223.         where ("<protect_me>" "<protected>") isOneOf {
  1224.         ("nextText" "nextText_METHOD")
  1225.         ("previousText" "previousText_METHOD")
  1226.         ("textDelegate" "textDelegate_METHOD")
  1227.         ("errorAction" "errorAction_METHOD")
  1228.         }
  1229.     }
  1230.  
  1231. /*********** IvarConversion: NSView *************/
  1232.  
  1233. replace "@implementation <isKindOf(NSView) class><w w1><any class_impl><w w2>@end" with same
  1234.     within ("<class_impl>") {
  1235.     replacemethod "<t protect_me>" with "<t protected>"
  1236.         where ("<protect_me>" "<protected>") isOneOf {
  1237.         ("frame" "frame_METHOD")
  1238.         ("bounds" "bounds_METHOD")
  1239.         ("superview" "superview_METHOD")
  1240.         ("subviews" "subviews_METHOD")
  1241.         ("window" "window_METHOD")
  1242.         }
  1243.     }
  1244.  
  1245. replace "@implementation <isKindOf(NSView) class><w w1><any class_impl><w w2>@end" with same
  1246.     within ("<class_impl>") {
  1247.     replace "frame" with "[self frame]"
  1248.     replace "bounds" with "[self bounds]"
  1249.     replace "superview" with "[self superview]"
  1250.     replace "subviews" with "[self subviews]"
  1251.     replace "window" with "[self window]"
  1252.     replace "vFlags.rotatedFromBase" with "[self isRotatedFromBase]"
  1253.     replace "vFlags.rotatedOrScaledFromBase" with "[self isRotatedOrScaledFromBase]"
  1254.     replace "vFlags.needsDisplay" with "[self needsDisplay]"
  1255.     }
  1256.  
  1257. replace "@implementation <isKindOf(NSView) class><w w1><any class_impl><w w2>@end" with same
  1258.     within ("<class_impl>") {
  1259.     replace "<t protected>" with "<t protect_me>"
  1260.         where ("<protect_me>" "<protected>") isOneOf {
  1261.         ("frame" "frame_METHOD")
  1262.         ("bounds" "bounds_METHOD")
  1263.         ("superview" "superview_METHOD")
  1264.         ("subviews" "subviews_METHOD")
  1265.         ("window" "window_METHOD")
  1266.         }
  1267.     }
  1268.  
  1269. /*********** IvarConversion: NSWindow *************/
  1270.  
  1271. replace "@implementation <isKindOf(NSWindow) class><w w1><any class_impl><w w2>@end" with same
  1272.     within ("<class_impl>") {
  1273.     replacemethod "<t protect_me>" with "<t protected>"
  1274.         where ("<protect_me>" "<protected>") isOneOf {
  1275.         ("frame" "frame_METHOD")
  1276.         ("contentView" "contentView_METHOD")
  1277.         ("delegate" "delegate_METHOD")
  1278.         ("firstResponder" "firstResponder_METHOD")
  1279.         ("windowNum" "windowNum_METHOD")
  1280.         ("level" "level_METHOD")
  1281.         ("autodisplay" "autodisplay_METHOD")
  1282.         }
  1283.     }
  1284.  
  1285. replace "@implementation <isKindOf(NSWindow) class><w w1><any class_impl><w w2>@end" with same
  1286.     within ("<class_impl>") {
  1287.     replace "frame" with "[self frame]"
  1288.     replace "contentView" with "[self contentView]"
  1289.     replace "delegate" with "[self delegate]"
  1290.     replace "firstResponder" with "[self firstResponder]"
  1291.     replace "windowNum" with "[self windowNumber]"
  1292.     replace "level" with "[self level]"
  1293.     replace "autodisplay" with "[self autodisplay]"
  1294.     replace "wFlags.backing" with "[self backingType]"
  1295.     replace "wFlags.visible" with "[self isVisible]"
  1296.     replace "wFlags.isMainWindow" with "[self isMainWindow]"
  1297.     replace "wFlags.isKeyWindow" with "[self isKeyWindow]"
  1298.     replace "wFlags.isPanel" with "[self [self]"
  1299.     replace "wFlags.hideOnDeactivate" with "[self hidesOnDeactivate]"
  1300.     replace "wFlags.dontFreeWhenClosed" with "[self isReleasedWhenClosed]"
  1301.     replace "wFlags.oneShot" with "[self isOneShot]"
  1302.     replace "wFlags2.docEdited" with "[self isDocumentEdited]"
  1303.     replace "wFlags2.dynamicDepthLimit" with "[self hasDynamicDepthLimit]"
  1304.     }
  1305.  
  1306. replace "@implementation <isKindOf(NSWindow) class><w w1><any class_impl><w w2>@end" with same
  1307.     within ("<class_impl>") {
  1308.     replace "<t protected>" with "<t protect_me>"
  1309.         where ("<protect_me>" "<protected>") isOneOf {
  1310.         ("frame" "frame_METHOD")
  1311.         ("contentView" "contentView_METHOD")
  1312.         ("delegate" "delegate_METHOD")
  1313.         ("firstResponder" "firstResponder_METHOD")
  1314.         ("windowNum" "windowNum_METHOD")
  1315.         ("level" "level_METHOD")
  1316.         ("autodisplay" "autodisplay_METHOD")
  1317.         }
  1318.     }
  1319.  
  1320. /*********** IvarConversion: cleanup *************/
  1321.  
  1322. /* assumes the access method is named the same as the ivar */
  1323.  
  1324. replace "[<rec> [self <t accessmethod>]]" with "[<rec> <accessmethod>]"
  1325.  
  1326. replace "[self <t accessmethod>]:" with "<accessmethod>:"
  1327.  
  1328. replace "->[self <t accessmethod>]" with "-><accessmethod>"
  1329.  
  1330. replace ".[self <t accessmethod>]" with ".<accessmethod>"
  1331.  
  1332. replace "- [self <t accessmethod>]<w w>{" with "- <accessmethod><w w>{"
  1333.  
  1334. replace "+ [self <t accessmethod>]<w w>{" with "+ <accessmethod><w w>{"
  1335.  
  1336. replace ";<w w>- [self <t accessmethod>]" with ";<w w>- <accessmethod>"
  1337.  
  1338. replace ";<w w>+ [self <t accessmethod>]" with ";<w w>+ <accessmethod>"
  1339.  
  1340. replace "}<w w>- [self <t accessmethod>]" with "}<w w>- <accessmethod>"
  1341.  
  1342. replace "}<w w>+ [self <t accessmethod>]" with "}<w w>+ <accessmethod>"
  1343.