Recent

Author Topic: Objective Pascal delegates problem?  (Read 3670 times)

MISV

  • Hero Member
  • *****
  • Posts: 711
Re: Objective Pascal delegates problem?
« Reply #15 on: January 22, 2020, 11:18:07 am »
I figured out what was suddenly causing problems. Own fault
« Last Edit: January 22, 2020, 11:32:25 am by MISV »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1211
  • Former Delphi 1-7, 10.2 User
Re: Objective Pascal delegates problem?
« Reply #16 on: January 22, 2020, 12:11:02 pm »
I figured out what was suddenly causing problems. Own fault

:)

Thanks for posting - I might try delegates myself now you've done all the hard work ;)
o Lazarus 2.1 r64368 FPC 3.3.1 r48100 macOS 10.14.6 Xcode 11.3.1
o Lazarus 2.1 r64392 3.3.1 Jan 13 21:24 macOS 11.1 aarch64 Xcode 12.3
o Lazarus 2.1 r61574 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
o Lazarus 2.1 r61574 3.0.4 Ubuntu 20.04 Parallels VM
o Lazarus 2.0.10 3.2.0 Win10 Parallels VM

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1211
  • Former Delphi 1-7, 10.2 User
Re: Objective Pascal delegates problem?
« Reply #17 on: October 25, 2020, 05:04:13 am »
I did finally get a round TUIT and come to grips with delegates.

See the Wiki example for NSURLConnection,  Retrieving data asynchronously using a custom delegate_object.

Late to the party and probably just in time to ignore the deprecated NSURLConnection and use its replacement NSURLSession - see the Wiki example Retrieving data using system-provided delegates. The NSURLSession Retrieving data using a custom delegate example is next on my ToDo list.
o Lazarus 2.1 r64368 FPC 3.3.1 r48100 macOS 10.14.6 Xcode 11.3.1
o Lazarus 2.1 r64392 3.3.1 Jan 13 21:24 macOS 11.1 aarch64 Xcode 12.3
o Lazarus 2.1 r61574 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
o Lazarus 2.1 r61574 3.0.4 Ubuntu 20.04 Parallels VM
o Lazarus 2.0.10 3.2.0 Win10 Parallels VM

 

TinyPortal © 2005-2018