• 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 22:57:05 -0400
  • Organization: FreeBSD/Linux Hippopotamus Preserve

> >>> 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?
>
> There may not be any API, internal or otherwise. It might be all just
> built into the internal
> workings of the window manager process.
>
> One would presume there is an internal API for switching to the grid
> view, since Spaces.app does
> that.

OK. Thanks.

Well, at least I now know that can do what I want, albeit kludgily:

I can find out the current Space as described in the earlier message
here. And although there's no Cocoa nor CoreServices way for me to
switch Spaces, I can at least do that via Apple Events in a sort-of
hacky way: in the Spaces Preference Pane, I can map keystrokes to the
"Switch Directly Into a Space" events, and then I can use Apple Events
in my application to send these keystrokes.

None of this is ideal, of course, but it's workable and acceptable for
my purposes.

Thanks again to all.


--
 Hippo Man
 email@hidden

|    .---------, 0__0
|   /           (  oo'---,
|  /                    oo\
| ,\                      |
| | \                ,=__/
|    \              /
|    /  /------|  /|
|    |__|-'    |__|'
_______________________________________________

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: 
 >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>)
 >Re: 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: Chris Idou <email@hidden>)

  • Prev by Date: Re: [JOB] iPhone development gig in Tampa, FL.
  • Next by Date: Re: [__NSFastEnumerationEnumerator nextObject] unexpectedly not very fast!
  • 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