/*********** ViewConversion: remove flipped API ***********/
replacemethod "<sel>" with same
error "ViewConversion: <sel> is obsolete; views never change flippedness"
where "<sel>" isOneOf {
"descendantFlipped:",
"notifyWhenFlipped:"
}
replacemethod "setFlipped:" with same
error "ViewConversion: '[NSView setFlipped:]' is obsolete; you must override 'isFlipped' instead of setting externally. However, [NSImage setFlipped:] is not obsolete. If that is what you are using here, no change is needed."
/*********** ViewConversion: clipping API ***********/
replacemethod "setClipping:" with same
error "ViewConversion: 'setClipping:' is obsolete. Views always clip to their bounds. Use PSinitclip instead."
replacemethod "clipToFrame:" with same
error "ViewConversion: 'clipToFrame:' is obsolete. Views always clip to their bounds."
replacemethod "doesClip" with same
error "ViewConversion: 'doesClip' is obsolete. Views always clip to their bounds."
/*********** ViewConversion: focusView API ***********/
replace "[<app> focusView]" with "[NSView focusView]"
replace "([<view> isFocusView])" with "([NSView focusView] == <view>)"
replace "[<view> isFocusView]" with "([NSView focusView] == <view>)"
replacemethod "isFocusView" with same
error "ViewConversion: 'isFocusView' is obsolete"
replacemethod "focusView" with same
error "ViewConversion: '-focusView' in NSApplication has been replaced by '+focusView' in NSView"
replacemethod "acceptsFirstMouse" with "acceptsFirstMouse:<event>" {
replace "<event_type>" with "(NSEvent *)"
replace "<event_param>" with "theEvent"
replace "<event_arg>" with "EVENT_NEEDED"
}
warning "ViewConversion: 'acceptsFirstMouse:' (used to be 'acceptsFirstMouse') now takes the event as an arg"
/*********** ViewConversion: convertPoint API ***********/
replace "[<view> convertPointFromSuperview:<point>]" with "[<view> convertPoint:<point> fromView:[<view> superview]]"
replace "[<view> convertPointToSuperview:<point>]" with "[<view> convertPoint:<point> toView:[<view> superview]]"
replace "[<view> convertRectFromSuperview:<rect>]" with "[<view> convertRect:<rect> fromView:[<view> superview]]"
replace "[<view> convertRectToSuperview:<rect>]" with "[<view> convertRect:<rect> toView:[<view> superview]]"
replacemethod "<sel>" with same
error "ViewConversion: <sel> is an obsolete cover method; use 'convertPoint:toView:'"
where "<sel>" isOneOf {
"convertPointFromSuperview:",
"convertPointToSuperview:",
"convertRectFromSuperview:",
"convertRectToSuperview:"
}
/*********** ViewConversion: sizing API ***********/
replacemethod "resizeSubviews:" with "resizeSubviewsWithOldSize:"
replacemethod "superviewSizeChanged:" with "resizeWithOldSuperviewSize:"
replacemethod "setAutoresizeSubviews:" with "setAutoresizesSubviews:"
replacemethod "setAutosizing:" with "setAutoresizingMask:"
replacemethod "splitView:resizeSubviews:" with "splitView:resizeSubviewsWithOldSize:"
replacemethod "autosizing" with "autoresizingMask"
error "ViewConversion: View's 'setOpaque:' is obsolete; you must override 'isOpaque' instead of setting externally (if sent to text, 'setDrawsBackground:' can be used to eliminate background gray; if sent to NSImageRep, it's OK)"
replacemethod "drawInSuperview" with same
error "ViewConversion: 'drawInSuperview' is obsolete; Check out gstates to optimize drawing performance"
replacemethod "notifyToInitGState:" with same
error "ViewConversion: 'notifyToInitGState:' is no longer necessary"