• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bring Window to Front
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bring Window to Front


  • Subject: Re: Bring Window to Front
  • From: Mike Abdullah <email@hidden>
  • Date: Sun, 1 Oct 2006 17:03:29 +0100

Hi Jamie, good to know we're getting new developers :)

Probably your two best bets are:

* The Accessibility Framework
* Applescript

I don't know a huge amount about the former, but for the latter, assuming Parallels has a basic AppleScript dictionary, you jut need to use NSAppleScript to run a script like:

tell app "Parallels"
	set miniaturized of window "aWindow" to false
	activate
end

There are probably also some CoreGraphics or such-like functions that I'm not aware of available :)

Mike.

On 1 Oct 2006, at 15:57, Jamie Frater wrote:

Hi all,

I am very new to Cocoa, Objective-C, and Macs in general but I am hoping to eventually drop all Windows programming in favour of Apple (I am a Windows develop by trade).

I am working on my first real Cocoa app and I have a query:

How do I force a window to restore from the dock? I have done some research and found the function to restore a window with the genie effect, but the problem is that the window I want to restore belongs to another program. I want to find the appropriate window for this program and force it to the front in a restored state. The program is Paralells desktop (though I am sure that makes no difference).

Does anyone know how I might do this? In Windows I can use FindWindow with a classname to get the handle of the foreign window and use that. It appears that Carbon has a findWindow and a FindWindowOfClass, but I am not sure if they are what I need.

thanks,
Jamie Frater
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Bring Window to Front (From: Jamie Frater <email@hidden>)

  • Prev by Date: Bring Window to Front
  • Next by Date: Re: How do I use NSTreeController?
  • Previous by thread: Bring Window to Front
  • Next by thread: Re: Bring Window to Front
  • Index(es):
    • Date
    • Thread