Wednesday, December 7, 2022

Announcement

MacScripeter.net will transition to a new Discourse server soon. Watch this space for the date and time of the transition. Please expect the site to experience periods of outage during this transition. See this and this for more details.

#1 2020-02-17 01:17:02 pm

markconwaymunro
Member
Registered: 2017-11-28
Posts: 57
Website

AppDelegate Suddenly Broken

Here is the situation:

1. The AppDelegate's Outlets and Received Actions are all warning that the action or outlet is not defined in the AppDelegate.

2. When control-dragging FROM the AppDelegate the string doesn't snap on anything so I can't assign  outlet 

3. When control-dragging from an object TO the AppDelegate, the only options that show up are formatter, menu and nextKeyView... none of the properties I have setup are listed.

Earlier I copied my code into a new script file and, for one minute I at least thought it was allowing me to link things. But then suddenly it wouldn't anymore.

Does anyone know what I could have done to the script that would cause this?

Offline

 

#2 2021-10-06 04:36:37 am

SunnyFrinton
Member
Registered: 2012-09-13
Posts: 42

Re: AppDelegate Suddenly Broken

I'm having the same problem, did you ever find a solution?

Offline

 

#3 2021-10-06 05:42:20 am

markconwaymunro
Member
Registered: 2017-11-28
Posts: 57
Website

Re: AppDelegate Suddenly Broken

No, I don't think I did. I just kind of worked around it... and, since the app was mostly done it wasn't a major impediment. Would still like to find a solution someday though.

Offline

 

#4 2021-10-06 04:41:36 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 6799

Re: AppDelegate Suddenly Broken

Could the file have been edited in Script Editor? That uses returns rather than linefeeds between paragraphs, which Xcode doesn't like.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/
latenightsw.com

Offline

 

#5 2021-10-07 12:20:26 am

Wang CL
Member
Registered: 2017-11-27
Posts: 6

Re: AppDelegate Suddenly Broken

An effective solution is to go back to XCode 12.5.1. This is a bug in Xcode 13......

Offline

 

#6 2021-10-07 12:21:29 am

Wang CL
Member
Registered: 2017-11-27
Posts: 6

Re: AppDelegate Suddenly Broken

I sent this bug report to apple, but no reply!? …

Offline

 

#7 2021-12-14 12:34:46 pm

Titanium
Member
From:: ~/Desktop
Registered: 2005-08-22
Posts: 86
Website

Re: AppDelegate Suddenly Broken

Always the same problem with Xcode 13.2 and macOS 12.1! sad


iMac 27" 3,6 Ghz - MacBook Pro 14" M1 - MacOS  Ventura
https://www.titanium-software.fr

Offline

 

#8 2022-02-28 01:28:46 am

Titanium
Member
From:: ~/Desktop
Registered: 2005-08-22
Posts: 86
Website

Re: AppDelegate Suddenly Broken

Hello,

For the actions (Sent Actions), I think there is a possibility (I'm not sure, I'm not a pro).

In the MainMenu.xib, select First Responder and in the Attributes inspector, add the action.
Then, from the object (a button for example), in the Connections inspector, control-drag on First Responder (not on App Delegate) and choose the desired action.

Sorry for my bad English...


iMac 27" 3,6 Ghz - MacBook Pro 14" M1 - MacOS  Ventura
https://www.titanium-software.fr

Offline

 

#9 2022-05-22 12:04:15 pm

Titanium
Member
From:: ~/Desktop
Registered: 2005-08-22
Posts: 86
Website

Re: AppDelegate Suddenly Broken

Xcode 13.4 and not yet corrected. sad
Maybe Apple wants to abandon AppleScriptObjC...


iMac 27" 3,6 Ghz - MacBook Pro 14" M1 - MacOS  Ventura
https://www.titanium-software.fr

Offline

 

#10 2022-07-10 02:28:08 am

jaspersiegers
Member
From:: The Netherlands
Registered: 2006-08-30
Posts: 54

Re: AppDelegate Suddenly Broken

Well the finally seemed to have fixed this.

Resolved in Xcode 14 Beta 3
Fixed an issue with outlet and action connections to AppleScript-based AppDelegates. (83373726) (FB9643535)

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)