Open axelson opened 10 years ago
That symbol is a private API, might be gone in a newer OSX.
This replacement is from a gist:
void set_space_by_index(int space)
{
CFNotificationCenterRef nc = CFNotificationCenterGetDistributedCenter();
CFStringRef numstr = CFStringCreateWithFormat(NULL, nil, CFSTR("%d"), space);
CFNotificationCenterPostNotification(nc, CFSTR("com.apple.switchSpaces"), numstr, NULL, TRUE);
}
@kfix does this work?
@macalinao no, not on sierra at least.
Unsurprisingly this project doesn't compile on mavericks.
Are there any alternative programs?
I guess I'll see if I can bend this to my needs: https://www.macupdate.com/app/mac/11400/appswitch/