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
Distance of gridlines in ...
by
wp
[
Today
at 12:45:44 pm]
paszlib. Determine if ext...
by
LemonParty
[
Today
at 12:35:03 pm]
CustomDraw package compil...
by
Bart
[
Today
at 12:14:32 pm]
How to turn OFF Word Wrap...
by
chiong
[
Today
at 12:03:48 pm]
How detect a keypress in ...
by
creaothceann
[
Today
at 11:55:55 am]
Code improvement, suggest...
by
ALLIGATOR
[
Today
at 11:54:58 am]
synedit
by
Martin_fr
[
Today
at 09:17:58 am]
OPCB – Object Pascal Comp...
by
kirchfritz
[
Today
at 08:34:08 am]
[CLOSED] WebView4Delphi q...
by
egsuh
[
Today
at 06:00:34 am]
Lazarus portable?
by
Mike.Cornflake
[
Today
at 04:13:55 am]
Build FCP with WinCE cros...
by
dbannon
[
Today
at 12:44:36 am]
[SOLVED] Where are my Uni...
by
tfurnivall
[
Today
at 12:05:13 am]
Anyone interested in help...
by
Roland57
[November 06, 2025, 11:49:36 pm]
32 team NFL schedule for ...
by
TBMan
[November 06, 2025, 10:29:10 pm]
Strange result of text so...
by
PascalDragon
[November 06, 2025, 08:58:36 pm]
Raising an exception with...
by
PascalDragon
[November 06, 2025, 08:29:26 pm]
Google announced the kill...
by
PascalDragon
[November 06, 2025, 08:18:52 pm]
Recreate RES file
by
Paolo
[November 06, 2025, 08:10:13 pm]
TArrayHelper
by
Thaddy
[November 06, 2025, 07:10:33 pm]
TLazSerial : serial port ...
by
mas steindorff
[November 06, 2025, 07:03:25 pm]
Text file and Timer
by
Ilya83
[November 06, 2025, 05:15:26 pm]
Searching character by ch...
by
Zvoni
[November 06, 2025, 05:07:44 pm]
CopyDirTree and empty dir...
by
Bart
[November 06, 2025, 03:44:55 pm]
Extract path from active ...
by
LemonParty
[November 06, 2025, 09:41:26 am]
Back arrow in App -> firs...
by
nicelybrewed
[November 06, 2025, 08:17:10 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Import images from Photo library (Read 9643 times)
Igor
Sr. Member
Posts: 384
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: 384
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: 384
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: 384
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: 384
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: 737
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