- Where Developers Learn, Share, & Build Careers
Here's a question: I should know that the user has clicked on the OS X desktop twice, but the icon is not .
Now, I have thought about the following solutions, although I'm not sure what they can do:
-
Using the status of the desktop icon Receive them), and the size of the desktop icon, we can theoretically examine once click on the desktop, if this icon is within one of the areas. Contra: Probably can not be true because some symbols can be transparent or can not lift the entire icon size.
-
Perhaps there is a variable that tells us that an icon is clicked from the desktop? So we can check that the variable has been activated when the user has double clicked on the desk for the last time.
I still have open for other (better) solutions, but they should be sandboxable for the Mac App Store.
This is probably not suitable for the Mac App Store, for several reasons.
First of all, how do you stop clicking outside of your window? There are some different mechanisms for this (for example, event nulls), but none of them is allowed in sandboxed apps and it is deliberate, and for a good reason, you do not interfere with other apps or OS Want to do
On top of that, it is difficult to think that whatever you try to do will not be counted as a non-standard UI / HIV baggage, which is another reason for rejection.
However, assuming there was no problem, and you can stop clicking on the desktop, there is no documented way to get all the icons on the desktop, so you should read the CD_store file directly. , Which means dependent on personal implementation related information, which is another thing that you are not allowed to do.
Finally, you have to gain access to it. DS_store file Unless you are expecting the user to drag your app (invisible) file or its root directory, or it is available on any NSOPanell or any other If you choose into things, then the only way you can get access to this type of sandbox is by temporary exception entitlements which you can not use unless you justify the reviewer So why should you as the solution to a bug or limitation in OS, what is your justification?
Comments
Post a Comment