| HippoMan |
12-02-2012 10:02 AM |
Quote:
Originally Posted by benwiggy
(Post 714127)
I'd be interested to know what features you implemented using Obj-C in Snow and (in outline at least) how you did it; and which family of APIs are now deprecated. One of the features heralded in 10.7 and later was improvements in using Obj-C within AppleScript. I've been looking into how I can use this to my advantage
|
One of the things I was using to manage my UI was the ability to be notified programmatically when the current desktop changes, and which desktop is the current one. There used to be an Objective-C API (I think in Carbon) which supplied this functionality up through Lion, but when Mountain Lion arrived, that API disappeared. The desktop-change notification is still present, but there is no longer any way to know programmatically which desktop is the current one.
... well, I should qualify that. It's still possible to obtain that info via hacking (code injection, for example), but you can say that about just about any piece of information about the OS's state. I just got tired of working so hard to hack my own computer, simply to make it work the way I want.
I also had been using ASOC ("AppleScript-Objective-C") for quite a while, but I assure you that this desired API is not available in that environment.
Unfortunately I don't recall the specific Objective-C API I was using for that functionality up through Lion, and I don't have the code any more, because I deleted it all when I gave my Mac away.
.
|