Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

(Invisible) Background App


  • Please log in to reply
No replies to this topic

#1 antion

antion

    Regular Member

  • Members
  • Pip
  • 18 posts
  • Graphics Card:Intel Iris Pro 1024 MB / NVIDIA GeForce GT 750M
  • Operating System:OS X 10.9 (Mavericks)

Posted 05 September 2013 - 04:48 PM

Hey,
I didn't knew, that here is the right point for answering my question (sorry for asking at the Wineskin forum under the name udwe).

Again: I want to start a Wine app from my Cocoa App. I use NSTask. The problem: Wine brings that app to the foreground (I don't want this, because the windows app only makes some background work).

I just made some progress in this case. I build Wine on my own and I changed the following in the Macdriver "cocoa_app.m":

In "- (void) transformProcessToForeground" I changed "[NSApp activateIgnoringOtherApps:YES];" to "...NO".

This now works (nearly) very fine. My app don't looses focus anymore. But there is one problem left: The Macdriver is ignoring the Info.plist in the Wineskin bundle. So it also ignores, that I made it to an agent (UIElement). Does anyone have some ideas, how I can hide the Dock Icon?

(If someone needs the changed compiled driver, please ask)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users