resolving objects by ID

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, LCMark

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

resolving objects by ID

Post by monte » Wed Jun 19, 2013 11:51 pm

From the icon docs:

1) The stack of the object's behavior (if applicable)
2) The stack of the owner of the object's behavior (if applicable)
...
n) The stack of the object's stack's behavior (if applicable)
A) The object's stack
B) The object's stack's mainstack (if a substack)
C) The object's stack's mainstacks substacks
D) The list of open stacks, in order they were loaded

It occurs to me that the stackFiles should come between C and D
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

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

Re: resolving objects by ID

Post by LCMark » Thu Jun 20, 2013 8:59 am

I think the problem with doing that would be all the stacks in the stackfiles would have to be loaded in order to do a search.

At the moment, the stackfiles is only searched when resolving a stack name - and it only loads the stack referenced by an entry if the name matches.

i.e. if stackfiles contains foobar mapping to myfoobarstack.livecode then when resolving 'stack foobar', if "foobar" isn't already in memory it will load myfoobarstack.livecode as it.

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

Re: resolving objects by ID

Post by monte » Thu Jun 20, 2013 9:46 am

Hmm... that's a good point...
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Locked

Return to “Engine Contributors”