Friday, May 27, 2022

#1 2021-10-29 03:06:41 am

Simon Knight
Member
Registered: 2009-10-23
Posts: 12

Is Xcode the only way to create a more complex user interface?

Hi,
I have a number of Applescripts that prompt the user with a series of dialogs in order to obtain the user requirements. A single dialog/window would be preferable, so after some googling and watching youtube videos I downloaded Xcode version 13.0.

I should state that I am out of my depth with Xcode and I spent a long time failing to get a simple "hello world" application to work.  The stumbling point is with the visual linking of a control on a window with a property in the Apple Script code.  This should be a simple drag and drop but it does not work.  I have now learned that this is due to a bug in Xcode v13 and that perhaps version 12.5.1 does work.  However, this is a two hour ten Gbyte download and I am not sure I want to use Xcode.  I have also learned that Applescript is not much use for more complex multi window applications owing to poor memory management.

I would appreciate any thoughts on alternatives to both creating a user interface and other programming tools.  At the moment I use Livecode but now I am retired I am unsure that I can justify the cost if there are viable alternatives.

best wishes

Simon


Filed under: GUI, xcode, livecode

Offline

 

#2 2021-10-29 09:59:12 am

estockly
Member
Registered: 2009-01-03
Posts: 16

Re: Is Xcode the only way to create a more complex user interface?

Hi Simon, On this page you'll find Dialog Toolkit Plus, which does exactly what you're asking and more.

https://latenightsw.com/freeware/

It has plenty of sample scripts to go along with it.

It's developed by Shane Stanley, and he's very good about responding to questions here at macScripter and here Late Night Software Ltd.


Dialog Toolkit Plus v1.1.2

Dialog Toolkit Plus is an ASObjC-based script library for showing enhanced dialogs. Add multiple text entry fields, checkboxes, popup menus, radio buttons, path controls, extra buttons, secure fields, images, and rules to dialogs. It requires macOS 10.10 or later.

Last edited by estockly (2021-10-29 09:59:38 am)

Offline

 

#3 2021-10-29 11:15:21 pm

KniazidisR
Member
From:: Greece
Registered: 2019-03-03
Posts: 2285

Re: Is Xcode the only way to create a more complex user interface?

Hello,

Very good advice has already been given to you. If you don't have the desire or time to learn AsObjC, then this is the best choice. Also, you can build the interface using AsObjC yourself. On the following site you will find many practical examples of how to do this without xCode: AsObjC examples


Model: MacBook Pro
OS X: Catalina 10.15.7
Web Browser: Safari 14.1
Ram: 4 GB

Offline

 

#4 2021-10-30 01:14:43 am

Simon Knight
Member
Registered: 2009-10-23
Posts: 12

Re: Is Xcode the only way to create a more complex user interface?

Thanks for the advice, I will investigate the links.  I have been put off AsObjC as I believe that means using Xcode and am frustrated that the present version appears to have bugs.

Offline

 

#5 2021-10-31 05:23:42 pm

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

Re: Is Xcode the only way to create a more complex user interface?

Simon Knight wrote:

I have been put off AsObjC



That's not so. You can use AppleScriptObjC outside Xcode.


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

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)