replace "[<obj> style] != NSTitledWindowMask" with "!([<obj> styleMask] & NSTitledWindowMask)"
replace "[<obj> style] != NSResizableWindowMask" with "!([<obj> styleMask] & NSResizableWindowMask)"
replace "NSTitledWindowMask != [<obj> style]" with "!([<obj> styleMask] & NSTitledWindowMask)"
replace "NSResizableWindowMask != [<obj> style]" with "!([<obj> styleMask] & NSResizableWindowMask)"
/* common appearance in window init methods */
replace "styleMask:[<obj> style]" with "styleMask:[<obj> styleMask]"
replacemethod "style" with "styleMask"
warning "WindowConversion: style was converted to styleMask. NXImageView also used to have a style method, which is now imageFrameStyle. Check to make sure this conversion is correct."
replace "(<balanced comparison>)" with "(<balanced newcomparison>)"
where ("<comparison>", "<newcomparison>") isOneOf {
error "WindowConversion: 'addTrackingRect:owner:assumeInside:' (used to be [<obj> setTrackingRect:<aRect> inside:<flag> owner:<anObject> tag:<trackNum> left:<leftDown> right:<rightDown>]) should be sent to a view instead of a window; trackingRect numbers are now returned by the kit instead of passed in by the client"
replacemethod "setTrackingRect:inside:owner:tag:left:right:" with "addTrackingRect:owner:assumeInside:"
error "WindowConversion: 'addTrackingRect:owner:assumeInside:' (used to be 'setTrackingRect:inside:owner:tag:left:right:') should be sent to a view instead of a window; trackingRect numbers are now returned by the kit instead of passed in by the client"
replacemethod "discardTrackingRect:" with "removeTrackingRect:"
error "WindowConversion: 'removeTrackingRect:' (used to be 'discardTrackingRect:') should be sent to a view (used to be sent to a window)"
/*********** WindowConversion: Methods that handles AppKit-type events ***********/
replacemethod "<sel>" with same
error "WindowConversion: <sel> is obsolete. Register for a notification from the window instead"
replacemethod "mouseLocation" with "mouseLocationOutsideOfEventStream"
replace "- (void)orderWindow:(int)place relativeTo:(int)otherWin;" with "- (void)orderWindow:(NSWindowOrderingMode)place relativeTo:(int)otherWin;"
replace "- (void)orderWindow:(int)place relativeTo:(int)otherWin {" with "- (void)orderWindow:(NSWindowOrderingMode)place relativeTo:(int)otherWin {"
replacemethod "style" with "styleMask"
warning "WindowConversion: style was converted to styleMask. NXImageView also used to have a style method, which is now imageFrameStyle. Check to make sure this conversion is correct."
replacemethod "bestScreen" with "deepestScreen"
replacemethod "smartFaxPSCode:" with "fax:"
replacemethod "setTitleAsFilename:" with "setTitleWithRepresentedFilename:"
error "WindowConversion: 'disableDisplay' is obsolete. You can probably remove this call. Typically drawing should happen as part of the update mechanism after every event. Display is now optimized using the View setNeedsDisplay: method. See the conversion doc for more info."
replacemethod "reenableDisplay" with same
error "WindowConversion: 'reenableDisplay' is obsolete. You can probably remove this call. Typically drawing should happen as part of the update mechanism after every event. Display is now optimized using the View setNeedsDisplay: method. See the conversion doc for more info."
replacemethod "isDisplayEnabled" with same
error "WindowConversion: 'isDisplayEnabled' is obsolete. You can probably remove this call and any drawing code it brackets. Typically drawing should happen as part of the update mechanism after every event. Display is now optimized using the View setNeedsDisplay: method. See the conversion doc for more info."
replacemethod "setViewsNeedDisplay" with "setViewsNeedDisplay:<flag>" {
replace "[<obj> buttonMask]" with "[<obj> styleMask]"
replacemethod "displayBorder" with same
error "WindowConversion: displayBorder is obsolete. The window border should be kept up to date by the AppKit. If you really need to force it to display, send display to the window."
replacemethod "buttonMask" with same
error "WindowConversion: obsolete method; button masks and style masks are combined; use 'styleMask'"