Re: Retrieving the EXIF date/time from 250k images
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=uni-bremen.de; s=2019; t=1660557066; i=@uni-bremen.de; bh=mVhnoYZeA68m3wlHVAtBIAWbuAn/3BMxwXIBTYkwB+s=; h=From:In-Reply-To:Date:Cc:References:To; b=bZkflo52s2seDLPdRzRuc9lr//bnLi4x5bZK3b/S0Ji99yZX6JbicvH3VYbbSPCET 2KsF9n6sCOtUDy/oO/sFf7W9gRiflkUz6UYj96HW1Xx82i6vcc6Int77lHfYXi796/ jtTSH0cmmXRMDL6VH0XBQLO5lQdgk8fIuvmb6Az9CplaAME7nKckqkYgXEO23bOlFf u/pC0rOaTVZB/swU6QNgKuN7//NkvQ7mf74s/WngmZlnRMbp4JUYq4kRLavRP+7kaC sc9Rb9uqHU8f6C83lPQwJzQqNXykt59HNUIBGfd4kjZJKnl540FOB24+1WH/8UUoUY bz/repXFAeyTQ==
I noticed you release the fileProps but didn’t release the image, but I don’t know if that’s one of those details you left out for clarity.
Good point, and sorry for the confusion. Yes, I do release the image.
Also, depending on some factors like mutability, while the initWithString call with a CFStringRef might essentially be a no-op, you can just do the typecast on the dateref and pass it directly into dateFromString.
Thanks, that should work. A detail I left out in-between: whitespace trimming. Or, does anyone know if dateFromString will handle trailing/leading whitespaces gracefully?
One thing I’d suggest is to do the work for each image asynchronously on a background queue and have that block (essentially all of your for-loop code) report its completion by some asynchronous way like posting a notification on the original queue
Yes, I will try to do that, in particular, to let the user know about the progress. G. _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com smime.p7s
participants (1)
-
Gabriel Zachmann via Cocoa-dev