Recent

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

MISV

  • Hero Member
  • *****
  • Posts: 704
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: 1053
  • 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 v2.1.0 r63871, FPC v3.3.1 r47164, macOS 10.14.6, Xcode 11.3.1
o Lazarus v2.1.0 r64160, FPC v3.3.1 Nov 27 21:16:31, macOS 11.0.1 (aarch64), Xcode 12.2
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (PD VM)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1053
  • 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 v2.1.0 r63871, FPC v3.3.1 r47164, macOS 10.14.6, Xcode 11.3.1
o Lazarus v2.1.0 r64160, FPC v3.3.1 Nov 27 21:16:31, macOS 11.0.1 (aarch64), Xcode 12.2
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (PD VM)

 

TinyPortal © 2005-2018