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
Midi to Wav Converter
by
Tomxe
[
Today
at 11:55:50 am]
Pure Pascal ZPAQ and ZSTD
by
Tomxe
[
Today
at 11:48:23 am]
FPC 3.2.4-rc1 available
by
Thaddy
[
Today
at 11:44:50 am]
AmigaOS can't run program...
by
Trenatos
[
Today
at 11:30:22 am]
504 Gateway Timeout
by
Thaddy
[
Today
at 11:27:43 am]
FPC Unleashed (inline var...
by
440bx
[
Today
at 11:21:27 am]
Lazarus and FreePascal on...
by
jwdietrich
[
Today
at 10:44:37 am]
Space Duel
by
Tomi
[
Today
at 09:18:22 am]
Call the Llama.cpp dynami...
by
LeP
[
Today
at 09:11:38 am]
Is there a "known good" c...
by
Thaddy
[
Today
at 08:07:46 am]
Can I get the position an...
by
CM630
[
Today
at 07:29:22 am]
Little bit...
by
egsuh
[
Today
at 05:05:41 am]
Lazarus 4.6 on macOS 10.1...
by
wpostma
[
Today
at 03:30:20 am]
Forums were down, and are...
by
wpostma
[
Today
at 03:26:20 am]
Feature announcement: Fun...
by
wpostma
[
Today
at 03:25:35 am]
Elite Arcade
by
domasz
[
Today
at 01:42:28 am]
Untitled raycaster game (...
by
flowCRANE
[
Today
at 01:17:56 am]
IDE Coolbar
by
Martin_fr
[April 20, 2026, 07:40:39 pm]
Change original package o...
by
pmralbuquerque
[April 19, 2026, 07:55:14 am]
Can /my/ AI help me with ...
by
domasz
[April 19, 2026, 07:23:35 am]
PasLLM - LLM Inference En...
by
Thaddy
[April 19, 2026, 06:57:20 am]
Amigo programming languag...
by
paxscript
[April 19, 2026, 06:32:55 am]
I hope FreePascal can sup...
by
Fibonacci
[April 19, 2026, 04:45:25 am]
Translate .lfm file in a ...
by
wp
[April 19, 2026, 01:40:24 am]
DataPort or Synpase stat...
by
mas steindorff
[April 19, 2026, 01:39:31 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Import images from Photo library (Read 10017 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: 765
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