• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: More fun with CGImageSourceCreateWithURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More fun with CGImageSourceCreateWithURL


  • Subject: Re: More fun with CGImageSourceCreateWithURL
  • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
  • Date: Mon, 17 Feb 2020 22:24:24 +0100

>>
>>   NSURL * url = [NSURL fileURLWithPath: [self absolutePathFor: filename_]
>> isDirectory: NO];
>>   if ( url == NULL )
>>   {
>>      ...  // never happened so far
>>   }
>>   CGImageSourceRef sourceRef = CGImageSourceCreateWithURL( (CFURLRef) url,
>> NULL );
>>   if ( sourceRef == NULL )
>>   {
>>       [self displayErrorMessage:  @"Image gone: " with: filename_];
>>      ...
>>   }
>>
>> He gets the error message "Image gone" - but when he checks that path, the
>> image is there alright.
>>
>> Does anyone have an idea what might be causing CGImageSourceCreateWithURL to
>> return NULL?
>> Is there anything I can do to get to the bottom of this erratic behavior?
>
> Does your screensaver need permission to access each folder or file?

Sorry, I should have mentioned that this occurs under macOS 10.12 .
The user I mentioned runs my screensaver under 10.12 .
And the images are not under the Pictures folder.


Best regards, Gabriel


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: More fun with CGImageSourceCreateWithURL
  • Next by Date: Still problems accessing files from my screensaver
  • Previous by thread: Re: More fun with CGImageSourceCreateWithURL
  • Next by thread: Still problems accessing files from my screensaver
  • Index(es):
    • Date
    • Thread