I created a window to deal with my applications Service Files.
I have a design question about a function I add into a current project (not meant to ends at the App Store, nor elsewhere).
I provided a screen shot (OS X) to let you know what I mean.
The project have a folder in the ApplicationData that holds three text files holding service data.
One thing I strongly dislike is to get service data from application(s) I used once or twice or and I trashed long ago. That is why I add a MenuItem to delete them (since ages).
But I only can delete files I know of. As an example, there can be crash files plists in OS X. Who knows how many other files OS X can creates and where. Also, I do not really know what Windows does (nor what Linux do).
Now the questions:
a. Must I try to delete these files (knowing that I may not have the real list) ?
b. In the clear folder button, I delete all items that can be found in that folder, then I delete the folder itself. I do that per Xojo standards AND because of the invisible files (mostly under Windows) that can be there (for unknown reason(s).
PS: I use this project as a proof of concept for this feature. Just like everybody, once a feature is OK, I may use it in all my projects (when relevant).
BTW: the Show xyz buttons codes writing was astonishing. Just like the previous time I add this (Reveal the Item) feature, the Language Reference was disturbing at most as the use of the Launch word I do what I do the previous time: I go to the project I use this feature to know how I coded it. The correct way is to use
f.Parent.Launch
if the object to display is not a folder or the item will be launched by an application. Paul (someone) ? Can you add an explanation that display this alternate way to use FolderItem.Launch
?
If I have troubles ding that AND I know that I can do it - probably using FolderItem.Launch
- who knows how many peopleshare the same situation without knowing it is possible to achieve that with simple Xojo code ?
How many people still use an AppleEvent (or an Apple Script) to do that and ask themselves how to do it X-Platform ?