• 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: Switch Spaces Programmatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switch Spaces Programmatically?


  • Subject: Re: Switch Spaces Programmatically?
  • From: glenn andreas <email@hidden>
  • Date: Fri, 2 Nov 2007 12:40:20 -0500


On Nov 2, 2007, at 12:18 PM, Christopher Hickman wrote:

Hi All,

I've searched through the release notes, but I can't find a method to call the switch spaces programmatically. Is there no API for this?


No, nor does there appear to be a good way to tell what the current Space is (which at least is symmetric)

You can, however, use the AppleScript bridge to talk to the System Events app to find out things such as the Spaces width and height, turn it on and off, as well as finding out if the user has enabled a keyboard modifier to allow using the number key navigation, and, if so, you can use the low level CG routines to post the corresponding key down/up events.

Of course, if the user doesn't have that enabled, there's nothing you can do (plus, the scripting bridge has a problem with fact that the key modifiers can be either a string or a list and appears to generate code for a single item, when a list is actually returned).

(That being said, the AppleScript bridge is _really_ cool...)


Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | prime : build, mutate, evolve, animate : the next generation of fractal art




_______________________________________________

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: 
 >Switch Spaces Programmatically? (From: Christopher Hickman <email@hidden>)

  • Prev by Date: New York CocoaHeads - Thursday, Nov. 8
  • Next by Date: Re: Transparent divider
  • Previous by thread: Re: Switch Spaces Programmatically?
  • Next by thread: IB Palettes no longer supported in Leopard - what to do?
  • Index(es):
    • Date
    • Thread