• 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
Traversing windows with Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Traversing windows with Cocoa


  • Subject: Traversing windows with Cocoa
  • From: aldo kurnia <email@hidden>
  • Date: Mon, 3 Mar 2008 13:10:24 -0800 (PST)

Hi everyone,
I'm relatively new to Mac development and would love to have any suggestion to the problem I'm facing. I've tried searching for a solution some weeks now, and still nothing really useful. Anyway, this is what I'm trying to do:

Given a window's TITLE, how do you create a reference to it, determine what kind of application the window is (the name of the application/executable)? and how do you move that window to the front?

For example, if I have a Safari window with the title "My Website", how do find the window, make a reference to it, check what kind of application this is (the answer is Safari) and then bring it to the front?

I tried using Carbon's Window Manager, but it wasn't able to see system-wide
windows. Applescript is also not very useful since the application I'm trying to support doesn't support some of the basic window scripts.

So, I looked at Accessiblity API and NSApplication looks somewhat promising because it can give out its NSWindow children reference and there are functions to activate them. One missing piece of the puzzle though, is that I couldn't find any way to get a list of system-wide processes and create a NSApplication reference to them. Does anyone has any idea about this?

Thank you!


---------------------------------
Never miss a thing.   Make Yahoo your homepage.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Traversing windows with Cocoa
      • From: Stephan Burlot <email@hidden>
    • Re: Traversing windows with Cocoa
      • From: Eric Schlegel <email@hidden>
    • Re: Traversing windows with Cocoa
      • From: Jens Alfke <email@hidden>
    • Re: Traversing windows with Cocoa
      • From: "I. Savant" <email@hidden>
  • Prev by Date: NSURLConnection SSL connection with expired cert.
  • Next by Date: Re: Changing the format of NSTableColumn built using Core Data Entity ?
  • Previous by thread: Re: NSURLConnection SSL connection with expired cert.
  • Next by thread: Re: Traversing windows with Cocoa
  • Index(es):
    • Date
    • Thread