• 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: List Running apps and windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List Running apps and windows


  • Subject: Re: List Running apps and windows
  • From: "Jere Gmail" <email@hidden>
  • Date: Sun, 4 May 2008 11:28:06 +0200

I have implemented this code:
	if(!AXAPIEnabled ())
	{
		NSLog(@"API not enabled");
		return;
	}
	if(!AXIsProcessTrusted ())
	{
		NSLog(@"PROCESS not trusted");
	}
And it enters the second if, so my app is not trusted. I have tried using
AXMakeProcessTrusted((CFStringRef)path);
But it wont do anything, no matter if I relaunch or not.
Guesses?

On Sun, May 4, 2008 at 1:17 AM, Jean-Daniel Dupas
<email@hidden> wrote:
>
>
> Le 4 mai 08 à 01:09, Steve Christensen a écrit :
>
>
> On May 3, 2008, at 3:52 PM, Jere Gmail wrote:
>
> I want to list all the running apps and their windows.
> Running apps is easy with [ws launchedApplications] but I cant find a
> way for listing their windows.
> I have tried NSWindowList(win_count,arr_win)  but then
> [[NSApplication sharedApplication] windowWithWindowNumber:arr_win[i]]
> in a bucle will give me no info on windows from other apps.
> Can anyone help? Thanks
>
> Each application has its own private address space, so including another
> app's windows in your app's window list doesn't make sense. The only way to
> find out about other app's windows is to have the user enable accessibility
> in System Preferences. This has already been discussed in detail here and on
> other lists. You might try doing a search to see what's already been said.
>
>
> In fact, this is no longer true on Leopard. Window are always in there own
> space, but you can list all windows and even create image for each window on
> screen.
>
> http://developer.apple.com/samplecode/SonOfGrab/
>
> And it make sense to inlude other app window in an a list, else tools like
> the GrabFS would not exists.
>
>



--
http://zon7blog.wordpress.com/
And again we fall.
_______________________________________________

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: List Running apps and windows
      • From: Adam Leonard <email@hidden>
    • Re: List Running apps and windows
      • From: "Jere Gmail" <email@hidden>
References: 
 >List Running apps and windows (From: "Jere Gmail" <email@hidden>)
 >Re: List Running apps and windows (From: Steve Christensen <email@hidden>)
 >Re: List Running apps and windows (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Newbie Question: Controls not redrawing on changes
  • Next by Date: Re: List Running apps and windows
  • Previous by thread: Re: List Running apps and windows
  • Next by thread: Re: List Running apps and windows
  • Index(es):
    • Date
    • Thread