For some reason things have changed in the unit CocoaInt, which results in an error when calling "CocoaPromptUser".
The error message: Identifier not found "CocoaPromptUser"
The fix:
In the unit CocoaInt, the prompt is now part of the TCocoaWidgetSet class (linked to the global variable CocoaWidgetSet).
Additional thing to know: the last 2 parameters one used to use in CocoaPromptUser are not longer needed.
Old code example
ButtonPressed := CocoaPromptUser(DialogCaption, DialogMessage ,DialogTypeID, ButtonArrayPtr, ButtonCount, DefaultIndex, 0, NSParentWindow, true);
The last 2 parameters (NSParentWindow, true) are no longer needed, and the function is now called through CocoaWidgetSet.PromptUser.
The new code:
ButtonPressed := CocoaWidgetSet.PromptUser(DialogCaption, DialogMessage ,DialogTypeID, ButtonArrayPtr, ButtonCount, DefaultIndex, 0);
Hope this is helpful to someone 😊