The Mac constant itemDisable is used incorrectly in
MDialogUtils.cpp. For example, IsPushButton() does the
following:
if \(itemType > itemDisable\)
itemType -= itemDisable;
itemDisable is a flag and there is nothing preventing Apple
from adding an itemType bigger than itemDisable in future
versions of the OS.
This code should be changed to:
itemType &= ~itemDisable;
The code in question appears 4 times in the file.