error "ApplicationConversion: <sel> is obsolete (the NXJournal class is obsolete)."
where "<sel>" isOneOf {
"slaveJournaler",
"masterJournaler",
"isJournalable",
"setJournalable:"
}
replacemethod "unhide" with same
error "ApplicationConversion: 'unhide' is obsolete"
replacemethod "setAppListener:" with same
error "ApplicationConversion: 'setAppListener:' is obsolete (the Listener class is obsolete)"
replacemethod "replyPort" with same
error "ApplicationConversion: 'replyPort' is obsolete (the Speaker class is obsolete)"
replacemethod "appListenerPortName" with same
error "ApplicationConversion: 'appListenerPortName' is obsolete (the Listener class is obsolete)"
replacemethod "appListener" with same
error "ApplicationConversion: 'appListener' is obsolete (the Listener class is obsolete)"
replacemethod "setAppSpeaker:" with same
error "ApplicationConversion: 'setAppSpeaker:' is obsolete (the Listener class is obsolete)"
replacemethod "appSpeaker" with same
error "ApplicationConversion: 'appSpeaker' is obsolete (the Listener class is obsolete)"
replacemethod "activeApp" with same
error "ApplicationConversion: 'activeApp' is obsolete"
replacemethod "activate:" with same
error "ApplicationConversion: 'activate:' is obsolete"
replacemethod "autoupdate" with same
error "ApplicationConversion: 'autoupdate' is obsolete ; autoupdate is always on at the application level"
replacemethod "setAutoupdate:" with same
error "ApplicationConversion: 'setAutoupdate:' is obsolete ; autoupdate is always on at the application level"
replacemethod "getWindowNumbers:count:" with same
error "ApplicationConversion: 'getWindowNumbers:count:' is obsolete. Use NSCountWindows() and NSWindowList()"
replacemethod "appIcon" with "applicationIconImage"
replacemethod "windowList" with "windows"
replacemethod "applicationDefined:" with same
error "Application Conversion: 'applicationDefined:' is obsolete. Override sendEvent to catch this event"
replacemethod "powerOff:" with same
error "Application Conversion: 'powerOff:' is obsolete. Instead observe NSWorkspaceWillPowerOffNotification from NSWorkspace. You could also override sendEvent to catch this event"
replace "[<obj> systemLanguages]" with "[[NSUserDefaults standardUserDefaults] objectForKey:@\"NSLanguages\"]"
replacemethod "systemLanguages" with same
error "ApplicationConversion: 'systemLanguages' is obsolete. Use [[NSUserDefaults standardUserDefaults] objectForKey:@\"NSLanguages\"]"
/*********** ApplicationConversion: name changes *************/
replace "[<app> delayedFree:<obj>]" with "[<obj> autorelease]"
replace "[NSApp context]" with "[[NSApp context] DPSContext]"
replacemethod "unhideWithoutActivation:" with "unhideWithoutActivation"
replacemethod "appAcceptsAnotherFile:" with same
error "Application Conversion: 'appAcceptsAnotherFile:' is obsolete"
replacemethod "<old>" with "<new>"
where ("<old>", "<new>") isOneOf {
("findWindow:", "windowWithWindowNumber:"),
("deactivateSelf", "deactivate"),
("showHelpPanel:", "showHelp:"),
("activateSelf:", "activateIgnoringOtherApps:"),
("stopModal:", "stopModalWithCode:")
}
replace "[<rec> setImportAlpha:<flag>]" with "[NSColor setIgnoresAlpha:!<flag>]"
replace "([<rec> doesImportAlpha])" with "(![NSColor ignoresAlpha])"
replace "[<rec> doesImportAlpha]" with "(![NSColor ignoresAlpha])"
replace "<t id> \<NXWorkspaceRequestProtocol> <t workspace>" with "NSWorkspace *<workspace>"
replace "NXWorkspaceRequestProtocol" with same
error "ApplicationConversion: 'NXWorkspaceRequestProtocol' protocol converted to NSWorkspace class"
replace "[<app> workspace]" with "[NSWorkspace sharedWorkspace]"
/*********** ApplicationConversion: new workspace notifications *************/
replacemethod "unmounted:" with same
error "ApplicationConversion: 'unmounted:' is obsolete ; observe NSWorkspace 'NSWorkspaceDidUnmountNotification' notification"
replacemethod "mounted:" with same
error "ApplicationConversion: 'mounted:' is obsolete ; observe NSWorkspace 'NSWorkspaceDidMountNotification' notification"
replacemethod "applicationWillLaunch:" with same
error "ApplicationConversion: 'applicationWillLaunch:' is obsolete ; observe NSWorkspace 'NSWorkspaceWillLaunchApplicationNotification' notification"
replacemethod "applicationDidLaunch:" with same
error "ApplicationConversion: 'applicationDidLaunch:' is obsolete ; observe NSWorkspace 'NSWorkspaceDidLaunchApplicationNotification' notification"
replacemethod "applicationDidTerminate:" with same
error "ApplicationConversion: 'applicationDidTerminate:' is obsolete ; observe NSWorkspace 'NSWorkspaceDidTerminateApplicationNotification' notification"
replacemethod "unmount:ok:" with same
error "ApplicationConversion: 'unmount:ok:' is obsolete ; observe NSWorkspace 'NSWorkspaceWillUnmountNotification' notification"
replacemethod "powerOffIn:andSave:" with same
error "ApplicationConversion: 'powerOffIn:andSave:' is obsolete ; observe NSWorkspace 'NSWorkspaceWillPowerOffNotification' notification"
replacemethod "fileOperationCompleted:" with same
error "ApplicationConversion: 'fileOperationCompleted:' is obsolete. Observe the NSWorkspace 'NSWorkspaceDidPerformFileOperationNotification' notification"
replacemethod "performFileOperation:source:destination:files:<files> options:" with "performFileOperation:source:destination:files:<files> tag:<tag>" {
replace "<tag_type>" with "(int *)"
replace "<tag_param>" with "tag"
replace "<tag_arg>" with "nil"
replace "<rettype>" with "(BOOL)"
}
error "ApplicationConversion: 'performFileOperation:source:destination:files:tag:' (from NXWorkspaceRequestProtocol, now in NSWorkspace) (used to be 'performFileOperation:source:destination:files:options:') now returns BOOL indicating success. Operation tag is now returned in tag. Files should be an NSArray of NSString (used to be tab separated string)"
replacemethod "findString:inFile:" with same
error "ApplicationConversion: NXWorkspaceRequestProtocols 'findString:inFile:' is obsolete."
replacemethod "<sel>" with same
error "ApplicationConversion: NXWorkspaceRequestProtocols <sel> is obsolete. The NSWorkspace NSNotificationCenter (notificationCenter) manages this behavior automatically"