Re: Image GPS Properties Question

2020-03-04 Thread Gabriel Zachmann via Cocoa-dev
> > Given a URL to an image I currently do this to grab image properties > (ignoring error handling to simplify the example code) > > let imgRef = CGImageSourceCreateWithURL(url as CFURL, nil) > let imgProps = CGImageSourceCopyPropertiesAtIndex(imgRef, 0, nil) as > NSDictionary? > let

RE: Re: Problem in the creation of Graphics context(NSGraphicsContext)

2020-03-04 Thread sravan.lakkimsetti--- via Cocoa-dev
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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:

Re: Problem in the creation of Graphics context(NSGraphicsContext)

2020-03-04 Thread David Duncan via Cocoa-dev
You’ll need to explain how you are creating the NSBitmapImageRep (what methods your calling, what parameters your passing, etc) that you pass to this method before anyone can explain why this might be going wrong for you. > On Mar 3, 2020, at 10:19 PM, Sravan Kumar Lakkimsetti via Cocoa-dev >

Re: Problem in the creation of Graphics context(NSGraphicsContext)

2020-03-04 Thread Richard Charles via Cocoa-dev
I have a very similar setup. I tried the following. NSBundle *bundle = [NSBundle mainBundle]; NSData *data = [NSData dataWithContentsOfFile:[bundle pathForResource:@"AAScreenShot" ofType:@"jpg"]]; NSBitmapImageRep *imageRep = [NSBitmapImageRep imageRepWithData:data]; NSGraphicsContext *context =

Re: Security scoped bookmarks example?

2020-03-04 Thread Quincey Morris via Cocoa-dev
On Mar 4, 2020, at 06:12 , Gabriel Zachmann via Cocoa-dev wrote: > >// load new image from disk >NSURL * url = [NSURL fileURLWithPath: [self absolutePathFor: filename_] > isDirectory: NO]; >// filename_ is one of the paths from the list of images under the user > selected

Re: Security scoped bookmarks example?

2020-03-04 Thread Gabriel Zachmann via Cocoa-dev
I am still having problems in my screensaver to access files that are stored on an external disk. The disk is just a simple hard disk connected to my Macbook via USB. (It is an important use case, since a lot of people like to keep there huge image collections on external hard disks.) I can