Re: More fun with CGImageSourceCreateWithURL

2020-02-17 Thread Gabriel Zachmann via Cocoa-dev
>> >> 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 )

Re: More fun with CGImageSourceCreateWithURL

2020-02-17 Thread Steve Mills via Cocoa-dev
On Feb 17, 2020, at 04:17:26, Gabriel Zachmann via Cocoa-dev wrote: > > One of my users (maybe, they others don't bother) > told me that occasionally, they get an error message that must originate from > this piece of code in my screensaver: > >NSURL * url = [NSURL fileURLWithPath: [self a

More fun with CGImageSourceCreateWithURL

2020-02-17 Thread Gabriel Zachmann via Cocoa-dev
One of my users (maybe, they others don't bother) told me that occasionally, they get an error message that must originate from this piece of code in my screensaver: NSURL * url = [NSURL fileURLWithPath: [self absolutePathFor: filename_] isDirectory: NO]; if ( url == NULL ) {