The NSWorkspace notification is the only public API for this. Relatedly, you
should not use private APIs which will restrict Apple's ability to change
the internal implementation easily in the future, and make innovations or
improvements difficult on them.

-Steven

2010/4/5 Ulai Beekam <[email protected]>

>
> How can I make my app know about when a space has changed, and when it has
> done so to which space it has changed? Also, how can I read which Spaces and
> how many are currently available? I'm allowed to use Snow Leopard.
>
> The only thing I'm aware of is the
> NSWorkspaceActiveSpaceDidChangeNotification in NSWorkspace, but that only
> tells me that a space changed, but doesn't provide me with any more
> information.
>
> Any ideas? I suppose the developer of Hyperspaces.app would know about
> this, but I guessed that he wouldn't want to tell me about his trade secrets
> :) Not that I'm gonna develop a competing product, just need to do some
> in-house stuff that allows for different keyboard layouts for differents
> spaces, but anyway, better to ask here I think.
> _________________________________________________________________
> Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
>
> https://signup.live.com/signup.aspx?id=60969_______________________________________________
>
> Cocoa-dev mailing list ([email protected])
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/steven.degutis%40gmail.com
>
> This email sent to [email protected]
>



-- 
Steven Degutis
http://www.thoughtfultree.com/
http://www.degutis.org/
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to