CustomControls - Style Guide ?

Organizing tasks to work on, New Features Ideas, Building LCS & LCB Libraries & Widgets, Redecorating and Modifying the IDE, Hacking / Editing Tools, Compiling the Engine from Source, etc.
User avatar
OpenXTalkPaul
Posts: 2633
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: CustomControls - Style Guide ?

Post by OpenXTalkPaul »

Skids wrote: Sun Aug 25, 2024 9:33 am The library and test stack work fine when run in OXT DPE on OS Big Sur. I believe that when run under Sonoma any standalones will run but running within the IDE does not work unless some hoops are jumped through. These "hoops" are described in the dictionary entry about the calendar library (Follow these instructions at entirely your own risk!). The instructions call for an additional line to be added to two plist files within the IDE which is simple. Next the IDE needs resigning which is a little more of an issue.

Of course it is possible that it is not an issue at all from OXT.

best wishes

Simon
ReadCalendarEvents.lcb.zipTest_Dual_Access_to_Eventkit.oxtstack
OK cool. I'll take a look into it, maybe there's an Apple API method for asking for the appropriate permission 'on the fly', but we certainly can add the appropriate key in the plist and make new code signature. Also, I beleive Standalone Builder has an option for including a custom info.plist when building a Mac OS standalone (doesn't it?), but that doesn't do any good when you're in the IDE trying to developing stacks with it.
Skids
Posts: 106
Joined: Thu Dec 22, 2022 9:40 am
Location: North Lincolnshire
Contact:

Re: CustomControls - Style Guide ?

Post by Skids »

From my notes the IDE plists (there are two) have the line:

Code: Select all

<key>NSCalendarsUsageDescription</key>
	<string>LiveCode requires permission to access your Calendars</string>

This is deprecated on macOS 14.0, and it is replaced by
NSCalendarsFullAccessUsageDescription.
The new key value pair are :

Code: Select all

<key>NSCalendarsFullAccessUsageDescription</key>
	<string>LiveCode requires permission to access your Calendars</string>

Note: There are 2 plist files where you have to try this change:
/Applications/LiveCode <version>.app/Contents/Info.plist
-> This is for granting access to the LiveCode IDE
/Applications/LiveCode <version>.app/Contents/Tools/Runtime/Mac OS X/x86-64/Standalone.app/Contents/Info.plist
--> This is for the standalone

All quite simple except that the modifications in Livecode break the IDE's security signature meaning that the OS will refuse to open the IDE.

For those who are really interested (sad?!) here is a link to Apple's documentation that describes the most recent version of the EkEventStore : https://developer.apple.com/documentati ... guage=objc
which replaces :
https://developer.apple.com/documentati ... guage=objc

enjoy!

Simon
Mostly using a Mac Studio M2 running MacOS Sonoma.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests