Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Widgetset
»
Cocoa
»
Import images from Photo library
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Pdf Viewer in Pascal
by
Tomxe
[
Today
at 09:13:20 am]
TSaveDialog and OneDrive
by
Zvoni
[
Today
at 08:57:08 am]
RunFormula: math expressi...
by
CM630
[
Today
at 08:21:49 am]
TCHATGPT — An Artificial ...
by
Weiss
[
Today
at 07:00:13 am]
You can embed Windows Con...
by
Ozz_Nixon
[
Today
at 03:39:13 am]
[New Component] ExtTabCtr...
by
jianwt
[
Today
at 02:48:15 am]
Implementing an Elo ratin...
by
mas steindorff
[
Today
at 12:55:07 am]
FPC Unleashed (inline var...
by
440bx
[June 16, 2026, 11:53:51 pm]
Codepage issue in console...
by
ASerge
[June 16, 2026, 11:37:57 pm]
RFC: Separation of MCU an...
by
ackarwow
[June 16, 2026, 11:06:14 pm]
Error with last fixes_3.2...
by
patyit
[June 16, 2026, 09:49:02 pm]
Mundo Medieval 3D MMORPG ...
by
Rodrigo Robles
[June 16, 2026, 06:06:17 pm]
Which Control should I us...
by
wp
[June 16, 2026, 05:08:55 pm]
Just Question App paramet...
by
eldonfsr
[June 16, 2026, 04:50:19 pm]
Content is distorting / w...
by
Handoko
[June 16, 2026, 03:53:02 pm]
ZxTune chiptunes player
by
Guva
[June 16, 2026, 12:41:14 pm]
Onscroll event for Tscrol...
by
laz_one_or2
[June 16, 2026, 11:16:39 am]
Fpcupdeluxe
by
CharlyTango
[June 16, 2026, 10:35:33 am]
Compiling Qt6 project on ...
by
wp
[June 16, 2026, 10:14:53 am]
What am I missing here? [...
by
loaded
[June 16, 2026, 08:11:06 am]
IDE Editor (OS: Windows11...
by
keith
[June 16, 2026, 07:36:18 am]
Single and Double, Conver...
by
avk
[June 16, 2026, 06:55:03 am]
AI Assist Python - to - P...
by
kirtu
[June 16, 2026, 12:57:01 am]
Instruction-level paralle...
by
LeP
[June 16, 2026, 12:23:51 am]
Lazarus syntax helpers
by
Edson
[June 15, 2026, 10:34:34 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Import images from Photo library (Read 10678 times)
Igor
Sr. Member
Posts: 385
Import images from Photo library
«
on:
August 06, 2021, 01:43:47 pm »
Hi,
Is there any example how I can show a system window to import selected image(s) from Photo library on Mac?
Logged
trev
Global Moderator
Hero Member
Posts: 2032
Former Delphi 1-7, 10.2 user
Re: Import images from Photo library
«
Reply #1 on:
August 06, 2021, 01:48:45 pm »
Applescript?
http://www.oldtoadstutorials.net/No.P01.html
Logged
Igor
Sr. Member
Posts: 385
Re: Import images from Photo library
«
Reply #2 on:
August 06, 2021, 02:54:17 pm »
Thanks, but regrettably it doesn't include my case. I need to copy selected images from Photo library to my app.
Logged
skalogryz
Global Moderator
Hero Member
Posts: 2770
Re: Import images from Photo library
«
Reply #3 on:
August 06, 2021, 03:47:09 pm »
PhotoKit
?
Logged
Igor
Sr. Member
Posts: 385
Re: Import images from Photo library
«
Reply #4 on:
August 06, 2021, 05:12:32 pm »
Thanks, yes, it seems that I need PhotoKit.
Does Lazarus include some component to implement this feature?
Logged
trev
Global Moderator
Hero Member
Posts: 2032
Former Delphi 1-7, 10.2 user
Re: Import images from Photo library
«
Reply #5 on:
August 07, 2021, 02:44:38 am »
Photokit requires macOS 10.11+ but the FPC Cocoa headers are only up to 10.10.
Logged
Igor
Sr. Member
Posts: 385
Re: Import images from Photo library
«
Reply #6 on:
August 08, 2021, 08:13:53 pm »
Thanks, I hope that future FPC 3.4.0 will be based on SDK 10.11 or newer.
Logged
Ryan Joseph
Newbie
Posts: 4
Re: Import images from Photo library
«
Reply #7 on:
September 06, 2021, 04:47:42 pm »
Igor, the headers are parsed now so you can try using the Photos frameworks now.
https://forum.lazarus.freepascal.org/index.php/topic,56171.0.html
Logged
Igor
Sr. Member
Posts: 385
Re: Import images from Photo library
«
Reply #8 on:
September 07, 2021, 05:38:13 pm »
Hi Ryan,
Many thanks! I'll try these headers with Photo library tomorrow on my M1 Mac.
Logged
Hansaplast
Hero Member
Posts: 783
Tweaking4All.com
Re: Import images from Photo library
«
Reply #9 on:
March 29, 2025, 08:46:00 am »
Apologies for responding to a very old thread, but did you (Igor) ever get PhotoKit to work?
I see the proper units in cocoaint fpc sources, but Lazarus is not picking them up - fpc didn't even compile these units for some reason.
Logged
https://www.tweaking4all.com
https://www.tweaking4all.nl
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Widgetset
»
Cocoa
»
Import images from Photo library
TinyPortal
© 2005-2018