Apple CEO granted restraining order