home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-05-12 | 50.5 KB | 1,343 lines |
- /*********** IvarConversion: NSActionCell *************/
-
- replace "@implementation <isKindOf(NSActionCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("tag" "tag_METHOD")
- ("target" "target_METHOD")
- ("action" "action_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSActionCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "tag" with "[self tag]"
- replace "target" with "[self target]"
- replace "action" with "[self action]"
- }
-
- replace "@implementation <isKindOf(NSActionCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("tag" "tag_METHOD")
- ("target" "target_METHOD")
- ("action" "action_METHOD")
- }
- }
-
- /*********** IvarConversion: NSApplication *************/
-
- replace "@implementation <isKindOf(NSApplication) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("currentEvent" "currentEvent_METHOD")
- ("windowList" "windowList_METHOD")
- ("keyWindow" "keyWindow_METHOD")
- ("mainWindow" "mainWindow_METHOD")
- ("delegate" "delegate_METHOD")
- ("context" "context_METHOD")
- ("running" "running_METHOD")
- ("appListener" "appListener_METHOD")
- ("appSpeaker" "appSpeaker_METHOD")
- ("replyPort" "replyPort_METHOD")
- ("appName" "appName_METHOD")
- ("hostName" "hostName_METHOD")
- ("screenSize" "screenSize_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSApplication) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "currentEvent" with "[self currentEvent]"
- replace "windowList" with "[self windows]"
- replace "keyWindow" with "[self keyWindow]"
- replace "mainWindow" with "[self mainWindow]"
- replace "delegate" with "[self delegate]"
- replace "context" with "[self context]"
- replace "running" with "[self isRunning]"
- replace "appFlags.hidden" with "[self isHidden]"
- replace "appFlags.active" with "[self isActive]"
- replace "appListener" with "[self appListener]"
- replace "appSpeaker" with "[self appSpeaker]"
- replace "replyPort" with "[self replyPort]"
- replace "appName" with "[[NSProcessInfo processInfo] processName]"
- replace "hostName" with "[[NSProcessInfo processInfo] hostName]"
- replace "screenSize" with "([[NSScreen mainScreen] frame].size)"
- }
-
- replace "@implementation <isKindOf(NSApplication) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("currentEvent" "currentEvent_METHOD")
- ("windowList" "windowList_METHOD")
- ("keyWindow" "keyWindow_METHOD")
- ("mainWindow" "mainWindow_METHOD")
- ("delegate" "delegate_METHOD")
- ("context" "context_METHOD")
- ("running" "running_METHOD")
- ("appListener" "appListener_METHOD")
- ("appSpeaker" "appSpeaker_METHOD")
- ("replyPort" "replyPort_METHOD")
- ("appName" "appName_METHOD")
- ("hostName" "hostName_METHOD")
- ("screenSize" "screenSize_METHOD")
- }
- }
-
-
- /*********** IvarConversion: NSBox *************/
-
- replace "@implementation <isKindOf(NSBox) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("cell" "cell_METHOD")
- ("contentView" "contentView_METHOD")
- ("offsets" "offsets_METHOD")
- ("borderRect" "borderRect_METHOD")
- ("titleRect" "titleRect_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSBox) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "cell" with "[self titleCell]"
- replace "contentView" with "[self contentView]"
- replace "offsets" with "[self contentViewMargins]"
- replace "borderRect" with "[self borderRect]"
- replace "titleRect" with "[self titleRect]"
- replace "bFlags.borderType" with "[self borderType]"
- replace "bFlags.titlePosition" with "[self titlePosition]"
- }
-
- replace "@implementation <isKindOf(NSBox) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("cell" "cell_METHOD")
- ("contentView" "contentView_METHOD")
- ("offsets" "offsets_METHOD")
- ("borderRect" "borderRect_METHOD")
- ("titleRect" "titleRect_METHOD")
- }
- }
-
- /*********** IvarConversion: NSBrowser *************/
-
- replace "@implementation <isKindOf(NSBrowser) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("target" "target_METHOD")
- ("delegate" "delegate_METHOD")
- ("action" "action_METHOD")
- ("doubleAction" "doubleAction_METHOD")
- ("matrixClass" "matrixClass_METHOD")
- ("cellPrototype" "cellPrototype_METHOD")
- ("pathSeparator" "pathSeparator_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSBrowser) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "target" with "[self target]"
- replace "delegate" with "[self delegate]"
- replace "action" with "[self action]"
- replace "doubleAction" with "[self doubleAction]"
- replace "matrixClass" with "[self matrixClass]"
- replace "cellPrototype" with "[self cellPrototype]"
- replace "pathSeparator" with "[self pathSeparator]"
- }
-
- replace "@implementation <isKindOf(NSBrowser) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("target" "target_METHOD")
- ("delegate" "delegate_METHOD")
- ("action" "action_METHOD")
- ("doubleAction" "doubleAction_METHOD")
- ("matrixClass" "matrixClass_METHOD")
- ("cellPrototype" "cellPrototype_METHOD")
- ("pathSeparator" "pathSeparator_METHOD")
- }
- }
-
- /*********** IvarConversion: NSButtonCell *************/
-
- replace "@implementation <isKindOf(NSButtonCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("sound" "sound_METHOD")
- ("keyEquivalent" "keyEquivalent_METHOD")
- ("keyEquivalentModifierMask" "keyEquivalentModifierMask_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSButtonCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "sound" with "[self sound]"
- replace "bcFlags1.bordered" with "[self bordered]"
- replace "bcFlags2.transparent" with "[self transparent]"
- replace "keyEquivalent" with "[self keyEquivalent]"
- replace "keyEquivalentModifierMask" with "[self keyEquivalentModifierMask]"
- replace "bcFlags1.pushIn" with "(([self highlightsBy] & NSPushInCellMask)? YES:NO)"
- replace "bcFlags1.lightByContents" with "(([self highlightsBy] & NSContentsCellMask)? YES:NO)"
- replace "bcFlags1.lightByBackground" with "(([self highlightsBy] & NSChangeBackgroundCellMask)? YES:NO)"
- replace "bcFlags1.lightByGray" with "(([self highlightsBy] & NSChangeGrayCellMask)? YES:NO)"
- replace "bcFlags1.changeContents" with "(([self showsStateBy] & NSContentsCellMask)? YES:NO)"
- replace "bcFlags1.changeBackground" with "(([self showsStateBy] & NSChangeBackgroundCellMask)? YES:NO)"
- replace "bcFlags1.changeGray" with "(([self showsStateBy] & NSChangeGrayCellMask)? YES:NO)"
- }
-
- replace "@implementation <isKindOf(NSButtonCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("sound" "sound_METHOD")
- ("keyEquivalent" "keyEquivalent_METHOD")
- ("keyEquivalentModifierMask" "keyEquivalentModifierMask_METHOD")
- }
- }
-
- /*********** IvarConversion: NSCell *************/
-
- replace "@implementation <isKindOf(NSCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("contents" "contents_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "contents" with "[self stringValue]"
- replace "cFlags1.state" with "[self state]"
- replace "cFlags1.highlighted" with "[self isHighlighted]"
- replace "cFlags1.disabled" with "[self isEnabled]"
- replace "cFlags1.editable" with "[self editable]"
- replace "cFlags1.type" with "[self type]"
- replace "cFlags1.alignment" with "[self alignment]"
- replace "cFlags1.bordered" with "[self isBordered]"
- replace "cFlags1.bezeled" with "[self isBezeled]"
- replace "cFlags1.selectable" with "[self isSelectable]"
- replace "cFlags1.scrollable" with "[self isScrollable]"
- replace "cFlags1.entryType" with "[self entryType]"
- replace "cFlags2.continuous" with "[self isContinuous]"
- }
-
- replace "@implementation <isKindOf(NSCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("contents" "contents_METHOD")
- }
- }
-
- /*********** IvarConversion: NSClipView *************/
-
- replace "@implementation <isKindOf(NSClipView) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("docView" "docView_METHOD")
- ("cursor" "cursor_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSClipView) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "docView" with "[self documentView]"
- replace "cursor" with "[self documentCursor]"
- }
-
- replace "@implementation <isKindOf(NSClipView) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("docView" "docView_METHOD")
- ("cursor" "cursor_METHOD")
- }
- }
-
- /*********** IvarConversion: NSColorPicker *************/
-
- replace "@implementation <isKindOf(NSColorPicker) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("colorPanel" "colorPanel_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSColorPicker) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "colorPanel" with "[self colorPanel]"
- }
-
- replace "@implementation <isKindOf(NSColorPicker) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("colorPanel" "colorPanel_METHOD")
- }
- }
-
- /*********** IvarConversion: NSColorWell *************/
-
- replace "@implementation <isKindOf(NSColorWell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("color" "color_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSColorWell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "color" with "[self color]"
- }
-
- replace "@implementation <isKindOf(NSColorWell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("color" "color_METHOD")
- }
- }
-
- /*********** IvarConversion: NSControl *************/
-
- replace "@implementation <isKindOf(NSControl) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("tag" "tag_METHOD")
- ("cell" "cell_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSControl) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "tag" with "[self tag]"
- replace "cell" with "[self cell]"
- replace "conFlags.enabled" with "[self isEnabled]"
- replace "conFlags.ignoreMultiClick" with "[self ignoresMultiClick]"
- }
-
- replace "@implementation <isKindOf(NSControl) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("tag" "tag_METHOD")
- ("cell" "cell_METHOD")
- }
- }
-
- /*********** IvarConversion: NSCursor *************/
-
- replace "@implementation <isKindOf(NSCursor) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("hotSpot" "hotSpot_METHOD")
- ("image" "image_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSCursor) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "hotSpot" with "[self hotSpot]"
- replace "image" with "[self image]"
- }
-
- replace "@implementation <isKindOf(NSCursor) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("hotSpot" "hotSpot_METHOD")
- ("image" "image_METHOD")
- }
- }
-
- /*********** IvarConversion: NSCustomImageRep *************/
-
- replace "@implementation <isKindOf(NSCustomImageRep) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("drawMethod" "drawMethod_METHOD")
- ("drawObject" "drawObject_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSCustomImageRep) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "drawMethod" with "[self drawSelector]"
- replace "drawObject" with "[self delegate]"
- }
-
- replace "@implementation <isKindOf(NSCustomImageRep) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("drawMethod" "drawMethod_METHOD")
- ("drawObject" "drawObject_METHOD")
- }
- }
-
- /*********** IvarConversion: NSFont *************/
-
- replace "@implementation <isKindOf(NSFont) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("size" "size_METHOD")
- ("matrix" "matrix_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSFont) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "size" with "[self pointSize]"
- replace "matrix" with "[self matrix]"
- replace "fFlags.isScreenFont" with "([self screenFont] == self)"
- }
-
- replace "@implementation <isKindOf(NSFont) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("size" "size_METHOD")
- ("matrix" "matrix_METHOD")
- }
- }
-
- /*********** IvarConversion: NSFontManager *************/
-
- replace "@implementation <isKindOf(NSFontManager) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("action" "action_METHOD")
- ("selFont" "selFont_METHOD")
- ("delegate" "delegate_METHOD")
- ("panel" "panel_METHOD")
- ("menu" "menu_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSFontManager) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "action" with "[self action]"
- replace "selFont" with "[self selectedFont]"
- replace "fmFlags.multipleFont" with "[self isMultiple]"
- replace "fmFlags.disabled" with "[self isEnabled]"
- replace "delegate" with "[self delegate]"
- replace "panel" with "[self fontPanel:NO]"
- replace "menu" with "[self fontMenu:NO]"
- }
-
- replace "@implementation <isKindOf(NSFontManager) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("action" "action_METHOD")
- ("selFont" "selFont_METHOD")
- ("delegate" "delegate_METHOD")
- ("panel" "panel_METHOD")
- ("menu" "menu_METHOD")
- }
- }
-
- /*********** IvarConversion: NSFontPanel *************/
-
- replace "@implementation <isKindOf(NSFontPanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("accessoryView" "accessoryView_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSFontPanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "accessoryView" with "[self accessoryView]"
- }
-
- replace "@implementation <isKindOf(NSFontPanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("accessoryView" "accessoryView_METHOD")
- }
- }
-
- /*********** IvarConversion: NSFormCell *************/
-
- replace "@implementation <isKindOf(NSFormCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("titleWidth" "titleWidth_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSFormCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "titleWidth" with "[self titleWidth]"
- }
-
- replace "@implementation <isKindOf(NSFormCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("titleWidth" "titleWidth_METHOD")
- }
- }
-
- /*********** IvarConversion: NSImageRep *************/
-
- replace "@implementation <isKindOf(NSImageRep) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("size" "size_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSImageRep) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "size" with "[self size]"
- }
-
- replace "@implementation <isKindOf(NSImageRep) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("size" "size_METHOD")
- }
- }
-
- /*********** IvarConversion: NSImage *************/
-
- replace "@implementation <isKindOf(NSImage) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("name" "name_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSImage) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "name" with "[self name]"
- }
-
- replace "@implementation <isKindOf(NSImage) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("name" "name_METHOD")
- }
- }
-
- /*********** IvarConversion: NSMatrix *************/
-
- replace "@implementation <isKindOf(NSMatrix) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("cellList" "cellList_METHOD")
- ("target" "target_METHOD")
- ("action" "action_METHOD")
- ("selectedCell" "selectedCell_METHOD")
- ("selectedRow" "selectedRow_METHOD")
- ("selectedCol" "selectedCol_METHOD")
- ("cellSize" "cellSize_METHOD")
- ("intercell" "intercell_METHOD")
- ("font" "font_METHOD")
- ("protoCell" "protoCell_METHOD")
- ("cellClass" "cellClass_METHOD")
- ("nextText" "nextText_METHOD")
- ("previousText" "previousText_METHOD")
- ("doubleAction" "doubleAction_METHOD")
- ("errorAction" "errorAction_METHOD")
- ("errorAction" "errorAction_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSMatrix) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "cellList" with "[self cells]"
- replace "target" with "[self target]"
- replace "action" with "[self action]"
- replace "selectedCell" with "[self selectedCell]"
- replace "selectedRow" with "[self selectedRow]"
- replace "selectedCol" with "[self selectedColumn]"
- replace "cellSize" with "[self cellSize]"
- replace "intercell" with "[self intercellSpacing]"
- replace "font" with "[self font]"
- replace "protoCell" with "[self prototype]"
- replace "cellClass" with "[self cellClass]"
- replace "nextText" with "[self nextText]"
- replace "previousText" with "[self previousText]"
- replace "doubleAction" with "[self doubleAction]"
- replace "errorAction" with "[self errorAction]"
- replace "textDelegate" with "[self delegate]"
- replace "mFlags.allowEmptySel" with "[self allowsEmptySelection]"
- replace "mFlags.autoscroll" with "[self isAutoscroll]"
- replace "mFlags.selectionByRect" with "[self isSelectionByRect]"
- replace "mFlags.drawsCellBackground" with "[self drawsCellBackground]"
- replace "mFlags.drawsBackground" with "[self drawsBackground]"
- replace "mFlags.highlightMode" with "([self mode] == NSHighlightModeMatrix)"
- replace "mFlags.radioMode" with "([self mode] == NSRadioModeMatrix)"
- replace "mFlags.listMode" with "([self mode] == NSListModeMatrix)"
- }
-
- replace "@implementation <isKindOf(NSMatrix) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("cellList" "cellList_METHOD")
- ("target" "target_METHOD")
- ("action" "action_METHOD")
- ("selectedCell" "selectedCell_METHOD")
- ("selectedRow" "selectedRow_METHOD")
- ("selectedCol" "selectedCol_METHOD")
- ("cellSize" "cellSize_METHOD")
- ("intercell" "intercell_METHOD")
- ("font" "font_METHOD")
- ("protoCell" "protoCell_METHOD")
- ("cellClass" "cellClass_METHOD")
- ("nextText" "nextText_METHOD")
- ("previousText" "previousText_METHOD")
- ("doubleAction" "doubleAction_METHOD")
- ("errorAction" "errorAction_METHOD")
- ("errorAction" "errorAction_METHOD")
- }
- }
-
- /*********** IvarConversion: NSMenu *************/
-
- replace "@implementation <isKindOf(NSMenu) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("supermenu" "supermenu_METHOD")
- ("matrix" "matrix_METHOD")
- ("attachedMenu" "attachedMenu_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSMenu) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "supermenu" with "[self supermenu]"
- replace "matrix" with "[self itemMatrix]"
- replace "attachedMenu" with "[self attachedMenu]"
- replace "menuFlags.autoenablesItems" with "[self autoenablesItems]"
- replace "menuFlags.attached" with "[self isAttached]"
- replace "menuFlags.tornOff" with "[self isTornOff]"
- }
-
- replace "@implementation <isKindOf(NSMenu) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("supermenu" "supermenu_METHOD")
- ("matrix" "matrix_METHOD")
- ("attachedMenu" "attachedMenu_METHOD")
- }
- }
-
- /*********** IvarConversion: NSOpenPanel *************/
-
- replace "@implementation <isKindOf(NSOpenPanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("allowMultiple" "allowMultiple_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSOpenPanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "allowMultiple" with "[self allowsMultipleSelection]"
- }
-
- replace "@implementation <isKindOf(NSOpenPanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("allowMultiple" "allowMultiple_METHOD")
- }
- }
-
- /*********** IvarConversion: NSPageLayout *************/
-
- replace "@implementation <isKindOf(NSPageLayout) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("accessoryView" "accessoryView_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSPageLayout) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "accessoryView" with "[self accessoryView]"
- }
-
- replace "@implementation <isKindOf(NSPageLayout) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("accessoryView" "accessoryView_METHOD")
- }
- }
-
- /*********** IvarConversion: NSPrinter *************/
-
- replace "@implementation <isKindOf(NSPrinter) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("printerName" "printerName_METHOD")
- ("hostName" "hostName_METHOD")
- ("domainName" "domainName_METHOD")
- ("printerType" "printerType_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSPrinter) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "printerName" with "[self name]"
- replace "hostName" with "[self host]"
- replace "domainName" with "[self domain]"
- replace "printerType" with "[self type]"
- }
-
- replace "@implementation <isKindOf(NSPrinter) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("printerName" "printerName_METHOD")
- ("hostName" "hostName_METHOD")
- ("domainName" "domainName_METHOD")
- ("printerType" "printerType_METHOD")
- }
- }
-
- /*********** IvarConversion: NSPrintInfo *************/
-
- replace "@implementation <isKindOf(NSPrintInfo) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("paperType" "paperType_METHOD")
- ("leftPageMargin" "leftPageMargin_METHOD")
- ("rightPageMargin" "rightPageMargin_METHOD")
- ("topPageMargin" "topPageMargin_METHOD")
- ("bottomPageMargin" "bottomPageMargin_METHOD")
- ("orientation" "orientation_METHOD")
- ("horizCentered" "horizCentered_METHOD")
- ("vertCentered" "vertCentered_METHOD")
- ("horizPagination" "horizPagination_METHOD")
- ("vertPagination" "vertPagination_METHOD")
- ("printerObject" "printerObject_METHOD")
- ("pageOrder" "pageOrder_METHOD")
- ("currentPage" "currentPage_METHOD")
- ("context" "context_METHOD")
- ("printerType" "printerType_METHOD")
- ("printerHost" "printerHost_METHOD")
- ("scalingFactor" "scalingFactor_METHOD")
- ("allPages" "allPages_METHOD")
- ("firstPage" "firstPage_METHOD")
- ("lastPage" "lastPage_METHOD")
- ("copies" "copies_METHOD")
- ("pagesPerSheet" "pagesPerSheet_METHOD")
- ("reversePageOrder" "reversePageOrder_METHOD")
- ("manualFeed" "manualFeed_METHOD")
- ("resolution" "resolution_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSPrintInfo) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "paperType" with "[self paperName]"
- replace "leftPageMargin" with "[self leftMargin]"
- replace "rightPageMargin" with "[self rightMargin]"
- replace "topPageMargin" with "[self topMargin]"
- replace "bottomPageMargin" with "[self bottomMargin]"
- replace "orientation" with "[self orientation]"
- replace "horizCentered" with "[self isHorizontallyCentered]"
- replace "vertCentered" with "[self isVerticallyCentered]"
- replace "horizPagination" with "[self horizontalPagination]"
- replace "vertPagination" with "[self verticalPagination]"
- replace "printerObject" with "[self printer]"
- replace "pageOrder" with "[[NSPrintOperation currentOperation] pageOrder]"
- replace "currentPage" with "[[NSPrintOperation currentOperation] currentPage]"
- replace "context" with "[[NSPrintOperation currentOperation] context]"
- replace "printerName" with "[[self printer] name]"
- replace "printerType" with "[[self printer] type]"
- replace "printerHost" with "[[self printer] host]"
- replace "scalingFactor" with "[[[self dictionary] objectForKey:NSPrintScalingFactor] floatValue]"
- replace "allPages" with "[[[self dictionary] objectForKey:NSPrintAllPages] boolValue]"
- replace "firstPage" with "[[[self dictionary] objectForKey:NSPrintFirstPage] intValue]"
- replace "lastPage" with "[[[self dictionary] objectForKey:NSPrintLastPage] intValue]"
- replace "copies" with "[[[self dictionary] objectForKey:NSPrintCopies] intValue]"
- replace "pagesPerSheet" with "[[[self dictionary] objectForKey:NSPrintPagesPerSheet] intValue]"
- replace "reversePageOrder" with "[[[self dictionary] objectForKey:NSPrintReversePageOrder] boolValue]"
- replace "manualFeed" with "[[[self dictionary] objectForKey:NSPrintPaperFeed] isEqual:NSPrintManualFeed]"
- replace "resolution" with "[[self printer] intForKey:@\"DefaultResolution\" inTable:@\"PPD\"]"
- }
-
- replace "@implementation <isKindOf(NSPrintInfo) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("paperType" "paperType_METHOD")
- ("leftPageMargin" "leftPageMargin_METHOD")
- ("rightPageMargin" "rightPageMargin_METHOD")
- ("topPageMargin" "topPageMargin_METHOD")
- ("bottomPageMargin" "bottomPageMargin_METHOD")
- ("orientation" "orientation_METHOD")
- ("horizCentered" "horizCentered_METHOD")
- ("vertCentered" "vertCentered_METHOD")
- ("horizPagination" "horizPagination_METHOD")
- ("vertPagination" "vertPagination_METHOD")
- ("printerObject" "printerObject_METHOD")
- ("pageOrder" "pageOrder_METHOD")
- ("currentPage" "currentPage_METHOD")
- ("context" "context_METHOD")
- ("printerType" "printerType_METHOD")
- ("printerHost" "printerHost_METHOD")
- ("scalingFactor" "scalingFactor_METHOD")
- ("allPages" "allPages_METHOD")
- ("firstPage" "firstPage_METHOD")
- ("lastPage" "lastPage_METHOD")
- ("copies" "copies_METHOD")
- ("pagesPerSheet" "pagesPerSheet_METHOD")
- ("reversePageOrder" "reversePageOrder_METHOD")
- ("manualFeed" "manualFeed_METHOD")
- ("resolution" "resolution_METHOD")
- }
- }
-
- /*********** IvarConversion: NSPrintPanel *************/
-
- replace "@implementation <isKindOf(NSPrintPanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("accessoryView" "accessoryView_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSPrintPanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "accessoryView" with "[self accessoryView]"
- }
-
- replace "@implementation <isKindOf(NSPrintPanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("accessoryView" "accessoryView_METHOD")
- }
- }
-
- /*********** IvarConversion: NSSavePanel *************/
-
- replace "@implementation <isKindOf(NSSavePanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("nextResponder" "nextResponder_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSSavePanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "nextResponder" with "[self nextResponder]"
- }
-
- replace "@implementation <isKindOf(NSSavePanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("nextResponder" "nextResponder_METHOD")
- }
- }
-
- /*********** IvarConversion: NSSavePanel *************/
-
- replace "@implementation <isKindOf(NSSavePanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("filename" "filename_METHOD")
- ("directory" "directory_METHOD")
- ("requiredType" "requiredType_METHOD")
- ("accessoryView" "accessoryView_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSSavePanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "filename" with "[self filename]"
- replace "directory" with "[self directory]"
- replace "requiredType" with "[self requiredFileType]"
- replace "accessoryView" with "[self accessoryView]"
- }
-
- replace "@implementation <isKindOf(NSSavePanel) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("filename" "filename_METHOD")
- ("directory" "directory_METHOD")
- ("requiredType" "requiredType_METHOD")
- ("accessoryView" "accessoryView_METHOD")
- }
- }
-
- /*********** IvarConversion: NSScroller *************/
-
- replace "@implementation <isKindOf(NSScroller) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("curValue" "curValue_METHOD")
- ("hitPart" "hitPart_METHOD")
- ("target" "target_METHOD")
- ("action" "action_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSScroller) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "curValue" with "[self floatValue]"
- replace "hitPart" with "[self hitPart]"
- replace "target" with "[self target]"
- replace "action" with "[self action]"
- }
-
- replace "@implementation <isKindOf(NSScroller) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("curValue" "curValue_METHOD")
- ("hitPart" "hitPart_METHOD")
- ("target" "target_METHOD")
- ("action" "action_METHOD")
- }
- }
-
- /*********** IvarConversion: NSScrollView *************/
-
- replace "@implementation <isKindOf(NSScrollView) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("vScroller" "vScroller_METHOD")
- ("hScroller" "hScroller_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSScrollView) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "vScroller" with "[self verticalScroller]"
- replace "hScroller" with "[self horizontalScroller]"
- }
-
- replace "@implementation <isKindOf(NSScrollView) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("vScroller" "vScroller_METHOD")
- ("hScroller" "hScroller_METHOD")
- }
- }
-
- /*********** IvarConversion: NSSliderCell *************/
-
- replace "@implementation <isKindOf(NSSliderCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("maxValue" "maxValue_METHOD")
- ("minValue" "minValue_METHOD")
- ("trackRect" "trackRect_METHOD")
- ("value" "value_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSSliderCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "maxValue" with "[self maxValue]"
- replace "minValue" with "[self minValue]"
- replace "trackRect" with "[self trackRect]"
- replace "value" with "[self doubleValue]"
- }
-
- replace "@implementation <isKindOf(NSSliderCell) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("maxValue" "maxValue_METHOD")
- ("minValue" "minValue_METHOD")
- ("trackRect" "trackRect_METHOD")
- ("value" "value_METHOD")
- }
- }
-
- /*********** IvarConversion: NSSpellChecker *************/
-
- replace "@implementation <isKindOf(NSSpellChecker) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("panel" "panel_METHOD")
- ("accessoryView" "accessoryView_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSSpellChecker) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "panel" with "[self spellingPanel]"
- replace "accessoryView" with "[self accessoryView]"
- }
-
- replace "@implementation <isKindOf(NSSpellChecker) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("panel" "panel_METHOD")
- ("accessoryView" "accessoryView_METHOD")
- }
- }
-
- /*********** IvarConversion: NSSpellServer *************/
-
- replace "@implementation <isKindOf(NSSpellServer) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("delegate" "delegate_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSSpellServer) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "delegate" with "[self delegate]"
- }
-
- replace "@implementation <isKindOf(NSSpellServer) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("delegate" "delegate_METHOD")
- }
- }
-
- /*********** IvarConversion: NSSplitView *************/
-
- replace "@implementation <isKindOf(NSSplitView) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("delegate" "delegate_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSSplitView) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "delegate" with "[self delegate]"
- }
-
- replace "@implementation <isKindOf(NSSplitView) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("delegate" "delegate_METHOD")
- }
- }
-
- /*********** IvarConversion: NSText *************/
-
- replace "@implementation <isKindOf(NSText) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("breakTable" "breakTable_METHOD")
- ("clickTable" "clickTable_METHOD")
- ("preSelSmartTable" "preSelSmartTable_METHOD")
- ("postSelSmartTable" "postSelSmartTable_METHOD")
- ("charCategoryTable" "charCategoryTable_METHOD")
- ("delegateMethods" "delegateMethods_METHOD")
- ("charFilterFunc" "charFilterFunc_METHOD")
- ("textFilterFunc" "textFilterFunc_METHOD")
- ("scanFunc" "scanFunc_METHOD")
- ("drawFunc" "drawFunc_METHOD")
- ("delegate" "delegate_METHOD")
- ("tag" "tag_METHOD")
- ("cursorTE" "cursorTE_METHOD")
- ("firstTextBlock" "firstTextBlock_METHOD")
- ("lastTextBlock" "lastTextBlock_METHOD")
- ("theRuns" "theRuns_METHOD")
- ("typingRun" "typingRun_METHOD")
- ("theBreaks" "theBreaks_METHOD")
- ("growLine" "growLine_METHOD")
- ("textLength" "textLength_METHOD")
- ("maxY" "maxY_METHOD")
- ("maxX" "maxX_METHOD")
- ("bodyRect" "bodyRect_METHOD")
- ("borderWidth" "borderWidth_METHOD")
- ("clickCount" "clickCount_METHOD")
- ("sp0" "sp0_METHOD")
- ("spN" "spN_METHOD")
- ("anchorL" "anchorL_METHOD")
- ("anchorR" "anchorR_METHOD")
- ("maxSize" "maxSize_METHOD")
- ("minSize" "minSize_METHOD")
- ("textStream" "textStream_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSText) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "breakTable" with "[self cStringTextInternalState]->breakTable"
- replace "clickTable" with "[self cStringTextInternalState]->clickTable"
- replace "preSelSmartTable" with "[self cStringTextInternalState]->preSelSmartTable"
- replace "postSelSmartTable" with "[self cStringTextInternalState]->postSelSmartTable"
- replace "charCategoryTable" with "[self cStringTextInternalState]->charCategoryTable"
- replace "delegateMethods" with "[self cStringTextInternalState]->delegateMethods"
- replace "charFilterFunc" with "[self cStringTextInternalState]->charFilterFunc"
- replace "textFilterFunc" with "[self cStringTextInternalState]->textFilterFunc"
- replace "scanFunc" with "[self cStringTextInternalState]->scanFunc"
- replace "drawFunc" with "[self cStringTextInternalState]->drawFunc"
- replace "delegate" with "[self cStringTextInternalState]->delegate"
- replace "tag" with "[self cStringTextInternalState]->tag"
- replace "cursorTE" with "[self cStringTextInternalState]->cursorTE"
- replace "firstTextBlock" with "[self cStringTextInternalState]->firstTextBlock"
- replace "lastTextBlock" with "[self cStringTextInternalState]->lastTextBlock"
- replace "theRuns" with "[self cStringTextInternalState]->theRuns"
- replace "typingRun" with "[self cStringTextInternalState]->typingRun"
- replace "theBreaks" with "[self cStringTextInternalState]->theBreaks"
- replace "growLine" with "[self cStringTextInternalState]->growLine"
- replace "textLength" with "[self cStringTextInternalState]->textLength"
- replace "maxY" with "[self cStringTextInternalState]->maxY"
- replace "maxX" with "[self cStringTextInternalState]->maxX"
- replace "bodyRect" with "[self cStringTextInternalState]->bodyRect"
- replace "borderWidth" with "[self cStringTextInternalState]->borderWidth"
- replace "clickCount" with "[self cStringTextInternalState]->clickCount"
- replace "sp0" with "[self cStringTextInternalState]->sp0"
- replace "spN" with "[self cStringTextInternalState]->spN"
- replace "anchorL" with "[self cStringTextInternalState]->anchorL"
- replace "anchorR" with "[self cStringTextInternalState]->anchorR"
- replace "maxSize" with "[self cStringTextInternalState]->maxSize"
- replace "minSize" with "[self cStringTextInternalState]->minSize"
- replace "tFlags.inClipView" with "[self cStringTextInternalState]->tFlags.inClipView"
- replace "tFlags.disableFontPanel" with "[self cStringTextInternalState]->tFlags.disableFontPanel"
- replace "tFlags.monoFont" with "[self cStringTextInternalState]->tFlags.monoFont"
- replace "tFlags.overstrikeDiacriticals" with "[self cStringTextInternalState]->tFlags.overstrikeDiacriticals"
- replace "tFlags.vertResizable" with "[self cStringTextInternalState]->tFlags.vertResizable"
- replace "tFlags.horizResizable" with "[self cStringTextInternalState]->tFlags.horizResizable"
- replace "tFlags.anchorIs0" with "[self cStringTextInternalState]->tFlags.anchorIs0"
- replace "tFlags.haveDown" with "[self cStringTextInternalState]->tFlags.haveDown"
- replace "tFlags.charWrap" with "[self cStringTextInternalState]->tFlags.charWrap"
- replace "tFlags.changeState" with "[self cStringTextInternalState]->tFlags.changeState"
- replace "textStream" with "[self cStringTextInternalState]->textStream"
- }
-
- replace "@implementation <isKindOf(NSText) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("breakTable" "breakTable_METHOD")
- ("clickTable" "clickTable_METHOD")
- ("preSelSmartTable" "preSelSmartTable_METHOD")
- ("postSelSmartTable" "postSelSmartTable_METHOD")
- ("charCategoryTable" "charCategoryTable_METHOD")
- ("delegateMethods" "delegateMethods_METHOD")
- ("charFilterFunc" "charFilterFunc_METHOD")
- ("textFilterFunc" "textFilterFunc_METHOD")
- ("scanFunc" "scanFunc_METHOD")
- ("drawFunc" "drawFunc_METHOD")
- ("delegate" "delegate_METHOD")
- ("tag" "tag_METHOD")
- ("cursorTE" "cursorTE_METHOD")
- ("firstTextBlock" "firstTextBlock_METHOD")
- ("lastTextBlock" "lastTextBlock_METHOD")
- ("theRuns" "theRuns_METHOD")
- ("typingRun" "typingRun_METHOD")
- ("theBreaks" "theBreaks_METHOD")
- ("growLine" "growLine_METHOD")
- ("textLength" "textLength_METHOD")
- ("maxY" "maxY_METHOD")
- ("maxX" "maxX_METHOD")
- ("bodyRect" "bodyRect_METHOD")
- ("borderWidth" "borderWidth_METHOD")
- ("clickCount" "clickCount_METHOD")
- ("sp0" "sp0_METHOD")
- ("spN" "spN_METHOD")
- ("anchorL" "anchorL_METHOD")
- ("anchorR" "anchorR_METHOD")
- ("maxSize" "maxSize_METHOD")
- ("minSize" "minSize_METHOD")
- ("textStream" "textStream_METHOD")
- }
- }
-
- /*********** IvarConversion: NSTextField *************/
-
- replace "@implementation <isKindOf(NSTextField) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("nextText" "nextText_METHOD")
- ("previousText" "previousText_METHOD")
- ("textDelegate" "textDelegate_METHOD")
- ("errorAction" "errorAction_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSTextField) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "nextText" with "[self nextText]"
- replace "previousText" with "[self previousText]"
- replace "textDelegate" with "[self delegate]"
- replace "errorAction" with "[self errorAction]"
- }
-
- replace "@implementation <isKindOf(NSTextField) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("nextText" "nextText_METHOD")
- ("previousText" "previousText_METHOD")
- ("textDelegate" "textDelegate_METHOD")
- ("errorAction" "errorAction_METHOD")
- }
- }
-
- /*********** IvarConversion: NSView *************/
-
- replace "@implementation <isKindOf(NSView) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("frame" "frame_METHOD")
- ("bounds" "bounds_METHOD")
- ("superview" "superview_METHOD")
- ("subviews" "subviews_METHOD")
- ("window" "window_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSView) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "frame" with "[self frame]"
- replace "bounds" with "[self bounds]"
- replace "superview" with "[self superview]"
- replace "subviews" with "[self subviews]"
- replace "window" with "[self window]"
- replace "vFlags.rotatedFromBase" with "[self isRotatedFromBase]"
- replace "vFlags.rotatedOrScaledFromBase" with "[self isRotatedOrScaledFromBase]"
- replace "vFlags.needsDisplay" with "[self needsDisplay]"
- }
-
- replace "@implementation <isKindOf(NSView) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("frame" "frame_METHOD")
- ("bounds" "bounds_METHOD")
- ("superview" "superview_METHOD")
- ("subviews" "subviews_METHOD")
- ("window" "window_METHOD")
- }
- }
-
- /*********** IvarConversion: NSWindow *************/
-
- replace "@implementation <isKindOf(NSWindow) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replacemethod "<t protect_me>" with "<t protected>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("frame" "frame_METHOD")
- ("contentView" "contentView_METHOD")
- ("delegate" "delegate_METHOD")
- ("firstResponder" "firstResponder_METHOD")
- ("windowNum" "windowNum_METHOD")
- ("level" "level_METHOD")
- ("autodisplay" "autodisplay_METHOD")
- }
- }
-
- replace "@implementation <isKindOf(NSWindow) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "frame" with "[self frame]"
- replace "contentView" with "[self contentView]"
- replace "delegate" with "[self delegate]"
- replace "firstResponder" with "[self firstResponder]"
- replace "windowNum" with "[self windowNumber]"
- replace "level" with "[self level]"
- replace "autodisplay" with "[self autodisplay]"
- replace "wFlags.backing" with "[self backingType]"
- replace "wFlags.visible" with "[self isVisible]"
- replace "wFlags.isMainWindow" with "[self isMainWindow]"
- replace "wFlags.isKeyWindow" with "[self isKeyWindow]"
- replace "wFlags.isPanel" with "[self [self]"
- replace "wFlags.hideOnDeactivate" with "[self hidesOnDeactivate]"
- replace "wFlags.dontFreeWhenClosed" with "[self isReleasedWhenClosed]"
- replace "wFlags.oneShot" with "[self isOneShot]"
- replace "wFlags2.docEdited" with "[self isDocumentEdited]"
- replace "wFlags2.dynamicDepthLimit" with "[self hasDynamicDepthLimit]"
- }
-
- replace "@implementation <isKindOf(NSWindow) class><w w1><any class_impl><w w2>@end" with same
- within ("<class_impl>") {
- replace "<t protected>" with "<t protect_me>"
- where ("<protect_me>" "<protected>") isOneOf {
- ("frame" "frame_METHOD")
- ("contentView" "contentView_METHOD")
- ("delegate" "delegate_METHOD")
- ("firstResponder" "firstResponder_METHOD")
- ("windowNum" "windowNum_METHOD")
- ("level" "level_METHOD")
- ("autodisplay" "autodisplay_METHOD")
- }
- }
-
- /*********** IvarConversion: cleanup *************/
-
- /* assumes the access method is named the same as the ivar */
-
- replace "[<rec> [self <t accessmethod>]]" with "[<rec> <accessmethod>]"
-
- replace "[self <t accessmethod>]:" with "<accessmethod>:"
-
- replace "->[self <t accessmethod>]" with "-><accessmethod>"
-
- replace ".[self <t accessmethod>]" with ".<accessmethod>"
-
- replace "- [self <t accessmethod>]<w w>{" with "- <accessmethod><w w>{"
-
- replace "+ [self <t accessmethod>]<w w>{" with "+ <accessmethod><w w>{"
-
- replace ";<w w>- [self <t accessmethod>]" with ";<w w>- <accessmethod>"
-
- replace ";<w w>+ [self <t accessmethod>]" with ";<w w>+ <accessmethod>"
-
- replace "}<w w>- [self <t accessmethod>]" with "}<w w>- <accessmethod>"
-
- replace "}<w w>+ [self <t accessmethod>]" with "}<w w>+ <accessmethod>"
-