Xojo
Huh! Interesting. Never saw âEventâ or âWeakAddressOfâ or âCallLaterâ. Maybe these are recent changes? (Iâm sticking with 2019r1.1 for the foreseeable future)
it would
making weakaddress of also check would be in that same category IMHO
In this specific use case, since its at app close, its likely true
But there are still times when the App() method does return NIL
Those are all in 2019r1.1
Huh!
I see why I never saw âEventâ before:
Event
Language Keyword
An event is a special type of method that is typically called when an action occurs.
Notes
You do not directly use this keyword in your Xojo code. You add events and event handlers to classes using the Add button on the Command Bar.
.CallLater
seems to be a Xojo.Core.Timer
function. Any reason to use Xojo.Core.Timer
instead of Timer
?
CallLater was part of the Xojo. framework so if you never used that you would to have seen it. As I never adopted the Xojo framework, I wrote my own CallLater for API 1 long ago.
CallLater is essentially a convenience function to create a single execution timer and fire a method. Thereâs not a technical reason to use one over the other, besides convenience.
Copy. But whatâs the difference between Xojo.Core.Timer
vs the regular one?
Xojo.Core.Timer is part of the aborted next gen Xojo before API 2.