Fixed NSActiveGadget() casting to int.