set handler mac prefer item call prefer menu item select applic menu param target object contain method param pref handler method handl prefer action set prefer handler object target method pref handler enabl pref menu target pref handler enabl pref menu set handler osx adapt handl prefer target pref handler set handler enabl prefer menu item call com appl eawt applic reflect method enabl pref method mac osx applic declar method set enabl prefer menu enabl pref method invok mac osx applic object valu enabl pref menu except ex defin log lp log granular type statement log error osx adapt access menu endif ex print stack trace 