Photos permission not showing

I deleted the last post as it wasn’t really the right question I needed to ask.

The first picture is what appear when the user accesses photos, why doesn’t it show what I have in App Wrapper? I use MBS to call the Photos access

if TargetMacOS then
if not NSMediaLibraryBrowserControllerMBS.available then
'MsgBox “Please run on Mac OS X 10.9.”
MessageOk(App.kErrorAlert, App.kErrorAlert10, “”)
end if

dim c as NSMediaLibraryBrowserControllerMBS
c = NSMediaLibraryBrowserControllerMBS.sharedMediaLibraryBrowserController
c.mediaLibraries = c.NSMediaLibraryImage
'c.NSMediaLibraryAudio + c.NSMediaLibraryMovie
Phototoggle = Phototoggle + 1
if Phototoggle mod 2 = 1 then
c.Visible = True
else
c.Visible = false
end if
end if

Only a guess: Since NSMediaLibraryBrowser does access pictures, movies and audio, i guess, you need access to these folders.

Well, it’s Apple framework, that shows the dialog.

You can switch to PHPickerViewControllerMBS class instead to read photos.

3 Likes

The message is saying something about Apple Music, and your Apple Music field is empty. It may be that that NSMediaLibraryBrowser requires Music access.

2 Likes

Will try PHPicker

It didn’t in previous OSs but seems to be the case now and what would you write in that field if you weren’t accessing Music?

If you aren’t accessing Music, it sounds like the photo picker Christian linked would have a tighter scope and not bring up the Music warning. That would be my choice of solution.

2 Likes