Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm currently using XCode in conjunction with Unity. When I initiate a build in Unity, it automatically runs XCode. XCode will then steal focus from whatever app I happen to be in. Is there a way of disabling apps stealing focus in OSX?

share|improve this question
    
When you initiate a build in Unity, does a window or tab also automatically open in Xcode, or is it silent (just the app activates or becomes the focused app)? –  alisamii Dec 19 '12 at 23:35
add comment

1 Answer

You can add this to the Info.plist of Xcode to make it launch in the background:

<key>LSBackgroundOnly</key>
<string>True</string>

(You might need to get write privileges on the Info.plist if you downloaded Xcode from the Mac App Store)

Source and details about what it can break: http://reviews.cnet.com/8301-13727_7-20085680-263/keep-applications-from-stealing-focus-when-opening-in-os-x/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.