Your comments don’t make sense to me. You either post an event to run the code on the main thread or, if you are on the main thread, you run the code directly.
Running the code directly is what invoking a block does. How is that unnecessary? Would it make more sense if the parameter were named “c” and the code said “c()”? > On Mar 19, 2023, at 6:22 AM, Michael Hall <mik3h...@gmail.com> wrote: > > > >> On Mar 18, 2023, at 4:46 AM, Michael Hall <mik3h...@gmail.com> wrote: >> >>> On Mar 17, 2023, at 7:49 AM, Alan Snyder <javali...@cbfiddle.com >>> <mailto:javali...@cbfiddle.com>> wrote: >>> >>> block() means invoke the block >> >> >> Not exactly and it still seems unnecessary here. >> >> It appears to convert the block to a selector and then to invoke it. > > There seems to be something I’m missing here. An app running with this > changed was crashing. > So the separate block() call might be necessary for some reason. > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com