Re: How to identify object instances (StableObjectId)?

2019-02-13 Thread Piotr Zarzycki
Sure! Let's do this! :) On Wed, Feb 13, 2019, 9:12 PM Olaf Krueger wrote: > Thanks, Alex for this proposal! > > @Piotr > I created a new issue [1] and a related feature branch. > We'll maybe find some free cycles soon in order to achieve this together... > with your help? ;- > > Thank you!

Re: How to identify object instances (StableObjectId)?

2019-02-13 Thread Olaf Krueger
Thanks, Alex for this proposal! @Piotr I created a new issue [1] and a related feature branch. We'll maybe find some free cycles soon in order to achieve this together... with your help? ;- Thank you! Olaf [1] https://github.com/apache/royale-asjs/issues/394 -- Sent from:

Re: How to identify object instances (StableObjectId)?

2019-02-13 Thread Piotr Zarzycki
+1 for that idea! Go ahead Olaf! I can help you if you need. Thanks, Piotr śr., 13 lut 2019 o 18:05 Alex Harui napisał(a): > Hi Olaf, > > As soon as you say a scenario is rare, then it definitely shouldn't be > baked into the base classes for PAYG reasons. > > It occurs to me that for any

Re: How to identify object instances (StableObjectId)?

2019-02-13 Thread Alex Harui
Hi Olaf, As soon as you say a scenario is rare, then it definitely shouldn't be baked into the base classes for PAYG reasons. It occurs to me that for any component that implements IStrand (like UIBase), you could define a bead that goes on the strand that would generate an identifier. Or

Re: How to identify object instances (StableObjectId)?

2019-02-13 Thread Olaf Krueger
Hi Alex, >I'd be interested in understanding the scenario where you create multiple instances with the exact same set of properties. Even if these scenarios are probably rare: One scenario is to display multiple instances of the same UI component at the same time. After initialization, they are

Re: How to identify object instances (StableObjectId)?

2019-02-12 Thread Alex Harui
For PAYG reasons, identifiers are not added to every object "just-in-case". If you need them, add them. I'd be interested in understanding the scenario where you create multiple instances with the exact same set of properties. I would think it would be better to share one instance in that

Re: How to identify object instances (StableObjectId)?

2019-02-12 Thread Olaf Krueger
Interesting, thanks for sharing! Olaf -- Sent from: http://apache-royale-development.20373.n8.nabble.com/

Re: How to identify object instances (StableObjectId)?

2019-02-12 Thread Piotr Zarzycki
Hi Olaf, This is how it looks like in intellij [1] - Each object has such unique number. If it's the same instance of object you will have the same number in other place of applications. [1] https://imgur.com/jG9MM2f Thanks, Piotr wt., 12 lut 2019 o 09:59 Olaf Krueger napisał(a): > Hi, > >

RE: How to identify object instances (StableObjectId)?

2019-02-12 Thread Yishay Weiss
That’s my understanding too. From: Olaf Krueger Sent: Tuesday, February 12, 2019 12:34:00 PM To: dev@royale.apache.org Subject: Re: How to identify object instances (StableObjectId)? Thanks, Yishay... it really seems that StableObjectId is coming from Chrome

Re: How to identify object instances (StableObjectId)?

2019-02-12 Thread Olaf Krueger
Thanks, Yishay... it really seems that StableObjectId is coming from Chrome. > You can use an object’s dimensions, className, etc. to make sure it’s the > one you need. > I do this all the time to break on specific values. Just to make sure that I got it right: What if we create a couple of

Re: How to identify object instances (StableObjectId)?

2019-02-12 Thread Harbs
+1. I do this all the time to break on specific values. > On Feb 12, 2019, at 11:40 AM, Yishay Weiss wrote: > > For what it’s worth, I find using conditional breakpoints will get me around > the need to record instance names most of the time. You can use an object’s > dimensions, className,

RE: How to identify object instances (StableObjectId)?

2019-02-12 Thread Yishay Weiss
For what it’s worth, I find using conditional breakpoints will get me around the need to record instance names most of the time. You can use an object’s dimensions, className, etc. to make sure it’s the one you need. From: Olaf Krueger Sent: Monday, February

RE: How to identify object instances (StableObjectId)?

2019-02-12 Thread Yishay Weiss
Krueger Sent: Tuesday, February 12, 2019 10:52:36 AM To: dev@royale.apache.org Subject: Re: How to identify object instances (StableObjectId)? Hi, just for the case of completeness, the StableObjectId looks like this in VSCode [1]. > ... you can identify an object by the properties it

Re: How to identify object instances (StableObjectId)?

2019-02-12 Thread Olaf Krueger
Hi, just for the case of completeness, the StableObjectId looks like this in VSCode [1]. > ... you can identify an object by the properties it has and its parent IIUIC, this is valid for objects which do not differ. But if we have (for whatever reason) identical object instances it's hard to

Re: How to identify object instances (StableObjectId)?

2019-02-11 Thread Piotr Zarzycki
In Intelij debugger there is unique number for each instance. I can see this during debugging, so maybe it's a matter of support from IDE sight. It is very helpful when you wanted to compare instance of some object in one place of app with another place. On Mon, Feb 11, 2019, 10:13 PM Alex Harui

Re: How to identify object instances (StableObjectId)?

2019-02-11 Thread Alex Harui
I've never seen that. For PAYG reasons, fewer objects are assigned ids just in case in Royale. For debugging, you might be able to call UIDUtil on the objects to assign then a UID. But often in the debugger you can identify an object by the properties it has and its parent. HTH, -Alex On