• 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: Controlling Spaces and retrieving information about the current Space?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling Spaces and retrieving information about the current Space?


  • Subject: Re: Controlling Spaces and retrieving information about the current Space?
  • From: Hippo Man <email@hidden>
  • Date: Wed, 23 Sep 2009 14:26:48 -0400

On Tue, Sep 22, 2009 at 12:19, Eric Schlegel <email@hidden> wrote:
>
> On Sep 21, 2009, at 4:39 PM, Hippo Man wrote:
>
>> Is there a way in Cocoa to programmatically query which Space the user
>> is currently looking at? [ ... ]
>
> You could use the (CoreGraphics, not Cocoa) API
> CGWindowListCreateDescriptionFromArray to get a window description
> dictionary for a window, and then look at the WorkspaceID data in that
> dictionary. There is no defined mapping from WorkspaceID to a particular
> space, however.

Thank you.


>> Secondly, is there any way in any of those environments to
>> programmatically switch Spaces? [ ... ]
>
> No, there is no API (in Cocoa or otherwise) to control the active space.

But how does Spaces do it? Is it via an internal, private API that
people like us don't have access to?


--
HippoMan <email@hidden>
_______________________________________________

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: Controlling Spaces and retrieving information about the current Space?
      • From: Chris Idou <email@hidden>
    • Re: Controlling Spaces and retrieving information about the current Space?
      • From: Graham Cox <email@hidden>
References: 
 >Controlling Spaces and retrieving information about the current Space? (From: Hippo Man <email@hidden>)
 >Re: Controlling Spaces and retrieving information about the current Space? (From: Eric Schlegel <email@hidden>)

  • Prev by Date: Re: Controlling Spaces and retrieving information about the current Space?
  • Next by Date: Re:Stability on Snow Leopard
  • Previous by thread: Re: Controlling Spaces and retrieving information about the current Space?
  • Next by thread: Re: Controlling Spaces and retrieving information about the current Space?
  • Index(es):
    • Date
    • Thread