Re: Concurrent loading of images ?

2020-05-09 Thread Jim Crate via Cocoa-dev
you can render it back to a CGImageRef with a bitmap context, and that can be done in a separate thread as well. Then you have a rendered bitmap ready to assign to your CALayer contents property. Jim Crate ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

Re: How to check whether directory tree has changed?

2019-12-21 Thread Jim Crate via Cocoa-dev
You want the FSEvents API. I’m pretty sure you can specify the start time for the events, and subdirectories are included. My app specifically discards events before I start monitoring. Jim Crate > On Dec 21, 2019, at 11:09, Gabriel Zachmann via Cocoa-dev > wrote: > > Is there

Re: Future of Cocoa

2019-11-21 Thread Jim Crate via Cocoa-dev
up-to-date over the last 15 years, and I’m relatively slow since I mostly use other languages. Jim Crate ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mo

Re: Exception in IKImageBrowserView in macOS 10.13 GM

2017-11-05 Thread Jim Crate
On Nov 5, 2017, at 11:56 AM, Steve Mills wrote: > > On Nov 5, 2017, at 10:23:09, Jim Crate wrote: >> >> The Finder icon view works the same way, and has since at least 10.10 or so. >> When I initially replaced the IKImageBrowserView in a client’s app with >> N

Re: Exception in IKImageBrowserView in macOS 10.13 GM

2017-11-05 Thread Jim Crate
hat shift-clicking didn’t extend the selection like it did before. It was the fact that Finder no longer worked that way in 10.10 or 10.11 that made me not bother to try to figure out how to do it. In the end, it was apparently something the users of the app neve

Re: Best Control for a Matrix these days?

2015-12-03 Thread Jim Crate
t String. Maybe the NSMatrix class? https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSMatrix_Class/ Jim Crate ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Concurrent tasks are getting hung up

2014-10-12 Thread Jim Crate
On Oct 11, 2014, at 1:01 AM, Steve Mills wrote: > OK, that makes sense. The docs for NSOperationQueue made it sound like it > would take care of all that for you, figuring out how many threads to create > based on current load, executing them as resources became available, etc. > I've set it t

Re: Concurrent tasks are getting hung up

2014-10-10 Thread Jim Crate
On Oct 10, 2014, at 11:00 AM, Kyle Sluder wrote: >> On Oct 10, 2014, at 6:42 AM, Steve Mills wrote: >> >> I've only created one NSOperationQueue and added many NSInvocationOperation >> to it. > > NSOperationQueue works by dispatching your blocks to the global async GCD > queue. If you send a

Re: Best way to composite/tile multiple CGImages to one image

2014-03-18 Thread Jim Crate
On Mar 14, 2014, at 5:30 PM, Trygve Inda wrote: > So what is the best way to use CoreImage in this case? > > I get the original large CGImageRef using an AVImageGenerator which grabs a > frame from a video file. I would start with something like this: CIImage *img = [CIImage emptyImage]; for

Re: Best way to composite/tile multiple CGImages to one image

2014-03-12 Thread Jim Crate
re writing 1 jpeg for every 20 images, using CoreImage will likely give you a noticeable performance boost. Jim Crate ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact th