> The old AppleShare permissions are still available via old API, but it may be
> better to move to POSIX permissions.
Ah, so those old permissions are AppleShare permissions. That's one thing I
didn't know.
> e.g.
>
> Dim file As FolderItem = SpecialFolder.Desktop.Child("test.rtf")
> Dim fileManager As New NSFileManagerMBS
>
> dim error as NSErrorMBS
> Dim Values As Dictionary = fileManager.attributesOfItemAtPath(file, error)
> Dim Permissions As Integer = Values.Value(fileManager.NSFilePosixPermissions)
>
> MsgBox "POSIX Permissions: "+oct(Permissions)
>
> MsgBox "Owner: "+_
> values.Value(fileManager.NSFileOwnerAccountID)+_
> " "+_
> values.Value(fileManager.NSFileOwnerAccountName)
>
> MsgBox "Group: "+_
> values.Value(fileManager.NSFileGroupOwnerAccountID)+_
> " "+_
> values.Value(fileManager.NSFileGroupOwnerAccountName)
That's weird… I sometimes see answers in this mailing list that point to a MBS
class I didn't know about earlier. In such cases, I re-read the documentation
and try to find ones I'm not aware of, to “fill” my knowledge.
Even then, I continue to discover MBS classes I didn't know about (like this
NSFileManagerMBS class), albeit it exists since version 11!
> Maybe that helps?
Sure, great!
Just a final question: I've seen the NSFileBusy flag in the documentation.
Using Google, I couldn't understand what kind of “busy” this is (is that the
“ghost” icon effect one sees while copying a file in the Finder? Or just a
“flag” that's shared among applications so one can set it and use it while
another application watches for this flag to determine when the first app has
finished handling the file?).
Thank you!
_______________________________________________
[email protected] mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info