the properties

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, LCMark

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: the properties

Post by monte » Tue Jun 04, 2013 9:51 am

Right... that's what I do now and I don't mind doing it... I was mainly thinking of the properties property because we are losing data if we don't get all the unshared properties... but I think it behaves as expected... then I got carried away with the idea of implementing it as a separate property... but I don't think it will pass the first test in finding a good name for it ;-)
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: the properties

Post by mwieder » Tue Jun 04, 2013 5:44 pm

but I don't think it will pass the first test in finding a good name for it ;-)
I'm not wild about some of the names we've currently got.
How is it that you can request the "hilitedbutton" of a group but not the "highlightedbutton"?

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1209
Joined: Thu Apr 11, 2013 11:27 am

Re: the properties

Post by LCMark » Wed Jun 05, 2013 10:49 am

How is it that you can request the "hilitedbutton" of a group but not the "highlightedbutton"?
I expect 'hilite' was used because it was the 'standard' spelling in the computer world (http://en.wiktionary.org/wiki/hilite).
We also have 'color' rather than 'colour', and 'behavior' rather than 'behaviour'... So you could say the engine vocabulary is Computer Oriented US English :)

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Location: Aalst, Belgium
Contact:

Re: the properties

Post by Janschenkel » Wed Jun 05, 2013 11:16 am

Maybe we could provide Oxford-dictionary synonyms in the language? *ducks*

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: the properties

Post by mwieder » Wed Jun 05, 2013 6:03 pm

@runrevmark- In spite of that "wiktionary" entry (which does, btw, say it's "nonstandard"), I've never seen that in any other computer language except Director. I think at the very least we should allow "highlight" as a synonym so we don't look like idiots.

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1209
Joined: Thu Apr 11, 2013 11:27 am

Re: the properties

Post by LCMark » Wed Jun 05, 2013 6:07 pm

@mwieder - I was just trying to find some vague historical justification for it because the decision to spell it that way was made long before I had any involvement... It might be that it was a misspelling used a lot of years ago, or maybe for compatibility with something else.

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: the properties

Post by mwieder » Wed Jun 05, 2013 6:16 pm

@runrevmark- from memory because I don't have the references handy right now, I think it's probably a holdover from HC syntax. Doesn't excuse the lack of a synonym, though. What I'd like to suggest is deprecating "hilite" and encouraging "highlight".

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1209
Joined: Thu Apr 11, 2013 11:27 am

Re: the properties

Post by LCMark » Wed Jun 05, 2013 6:22 pm

@mwieder: That certainly sounds like a fair suggestion - either that or just wait until we get to 'Clean Syntax' and the script translator and 'hilite' can go away forever ;)

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: the properties

Post by jacque » Wed Jun 05, 2013 7:25 pm

It is indeed HC syntax. But HC also accepted "highlight", "hilight", and "hilite". :)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1209
Joined: Thu Apr 11, 2013 11:27 am

Re: the properties

Post by LCMark » Wed Jun 05, 2013 8:41 pm

This does open an interesting question - should variant spellings be a part of the language, or should we just say 'all tokens should be spelt according to dictionary X'? I've started a separate topic on that to see what people think.

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: the properties

Post by mwieder » Wed Jun 05, 2013 11:07 pm

@Jacque- see the other thread, but "hilitedButton" is ok, while "highlightedButton" is not.

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: the properties

Post by monte » Thu Jun 13, 2013 4:15 am

Looks like there is a bit of backlash about not returning unset values... I'm happy to reverse that but I think it was @runrevmark that wanted it.

To deal with the colour/pattern issue we could not return a color if that pattern is set but otherwise return a color (empty or otherwise)...

There is also some interest in a propertyNames of controlType property/function but I think that's a separate topic.

The other thing is I think it should be checked for abbreviations due to the recent discussion about abbreviations I'm thinking the properties should return the full property name...
Last edited by monte on Thu Jun 13, 2013 5:22 am, edited 1 time in total.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: the properties

Post by monte » Thu Jun 13, 2013 4:57 am

Thinking about this some more I think that an empty value has meaning and should be returned... If you are applying properties from one object to another and skip the empty ones then the target object may already have values for those so it will union the properties rather than apply empty to allow inheritance... So... just waiting for confirmation from @runrevmark and I'll fix this up ASAP...
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: the properties

Post by jacque » Thu Jun 13, 2013 7:44 am

I think the docs describe that behavior - - an empty property does not replace an existing one in the target object.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: the properties

Post by monte » Thu Jun 13, 2013 7:51 am

where does it say that?
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Locked

Return to “Engine Contributors”