Tuesday, September 17, 2019

#1 2019-07-29 04:06:15 pm

Budgie
Member
From:: New Zealand
Registered: 2005-02-22
Posts: 699

are multiple selections allowed?

Hi
I was wondering if a method exists to allow multiple selections from a drop box or combo box?, the selections are text only.

if so would you mind sharing a snippet of code please, i'm thinking it's not possible from what i've read
but it's worth asking just in case, if it's not possible what other options would I have please.

cheers


Cheers
Budgie

"There's no shame in accepting aid from others... but perhaps there is a  responsibility."    - Batman

Offline

 

#2 2019-07-29 05:58:02 pm

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

Re: are multiple selections allowed?

A combo box is just a specialized kind of text field, so selection is not relevant. I don't know what a drop box is.


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

Offline

 

#3 2019-07-29 06:05:38 pm

Budgie
Member
From:: New Zealand
Registered: 2005-02-22
Posts: 699

Re: are multiple selections allowed?

sorry, pop up button,  cheers Shane

so what would you suggest I look into for  having multiple selections allowed, like a list dialog
but set up in xcode?


Cheers
Budgie

"There's no shame in accepting aid from others... but perhaps there is a  responsibility."    - Batman

Offline

 

#4 2019-07-29 06:22:22 pm

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

Re: are multiple selections allowed?

You can do it in a popup — just have its action handler toggle the state of the sender. But most times non-exclusive radio buttons or a table are better choices, in that they're more visible.


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

Offline

 

#5 2019-07-30 02:41:06 pm

Budgie
Member
From:: New Zealand
Registered: 2005-02-22
Posts: 699

Re: are multiple selections allowed?

thanks for the advice, seems better to go down the table avenue

i've been using this    https://discussions.apple.com/thread/6241289 as a guide to set up a table view, but cant get the text to show at all, are any up to date tutorials available that you no of or down loadable sample projects to see how it all works.

cheers


Cheers
Budgie

"There's no shame in accepting aid from others... but perhaps there is a  responsibility."    - Batman

Offline

 

#6 2019-07-30 05:21:45 pm

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

Re: are multiple selections allowed?

Apple's table view programming guide is probably a good place to start. The reality is that they're fairly complex beasts to understand, and they're hard to program without a reasonable level of understanding.


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)