Behavior () { ID defaults = invoke("NSUserDefaults", "standardUserDefaults"); invoke(defaults, "synchronize"); ID behavior = invoke(defaults, "boolForKey:", nsString("AppleScrollerPagingBehavior")); Behavior value = 1 == behavior.intValue() ? JumpToSpot : NextPage; Logger.getInstance(MacScrollBarUI.class).debug("scroll bar behavior ", value, " from ", behavior); return value; }