• 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: Getting other application's window/document name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting other application's window/document name


  • Subject: Re: Getting other application's window/document name
  • From: Eric Schlegel <email@hidden>
  • Date: Thu, 21 May 2009 23:55:24 -0700


On May 21, 2009, at 11:32 PM, John Ku wrote:

I should have been more specific in the question sorry.
And you are right, just tried this with Adobe Photoshop and gave me at least twenty entries for photoshop's floating windows and palettes and others like spotlight, systemUI Server. With background processes, I could probably match it against with what I get from NSWorkspace/LaunchedApplication, but the palettes and inspectors are there. Too trigger happy on my part. :P


Perhaps there is a tricky way to filter it, all I need is to get only the launched Applications and their window/document if any. Any ideas?

Depending on exactly what your purpose is in gathering this info, you might also be able to use the Accessibility API to get the AXDocument attribute of the window. That will be the path to the on-disk document represented by the window. That won't help in cases where the window has no on-disk document, however.


-eric

_______________________________________________

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


References: 
 >Getting other application's window/document name (From: John Ku <email@hidden>)
 >Re: Getting other application's window/document name (From: Eric Schlegel <email@hidden>)
 >Re: Getting other application's window/document name (From: John Ku <email@hidden>)
 >Re: Getting other application's window/document name (From: Kyle Sluder <email@hidden>)
 >Re: Getting other application's window/document name (From: John Ku <email@hidden>)

  • Prev by Date: Re: Compiler does not synthesize KVO compliant properties for CATiledLayer subclass (was: Synthesized properties for scalars not KVO compliant)
  • Next by Date: [Core Data] Can we use setValue:forKey: in *willSave* method of NSManagedObject?
  • Previous by thread: Re: Getting other application's window/document name
  • Next by thread: Merge 2 QTTracks in a QTMovie
  • Index(es):
    • Date
    • Thread