1

How to subscribe (or receive) signals from emitPropertyWithName:

asked 2015-03-13 04:52:32 -0800

dvs gravatar image

updated 2015-03-13 04:53:03 -0800

I described interface OneObject in xml.

Let it be like this one (Only Property):

<property name="PropertyOne" type="s" access="read"/>

I generated OneObject classes.

Now I create Producer and Consumer. First one create object from OneObjectImpl class and register it in the Bus. Second one register OneObjectProxy in the Bus, and with it I'm able to get value of PropertyOne.

On next step, on Producer Side I changed OneProperty value, but I'm not receiving any changes on the consumer side via KVO. If I call oneObjectProxy.PropertyOne, I will get new value.

I tried manually call this method:

[self emitPropertyWithName:@"PropertyOne" onInterfaceWithName:@"my.interface.Name.OneObject" changedToValue:newValueInAJNMsgArg inSession:0];

But I don't know how to receive signal about this change on Consumer side. How to do this?

Main goal is to be able on Consumer side get changes of object properties via KVO mechanic.

edit retag flag offensive close merge delete

Comments

you might try on the core mailing list. https://lists.allseenalliance.org/mailman/listinfo/allseen-core

ry.jones ( 2015-10-15 08:53:51 -0800 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-10-15 10:52:41 -0800

dvs gravatar image

I solved this with PropertiesChangedListener::PropertiesChanged.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-03-13 04:52:32 -0800

Seen: 41 times

Last updated: Mar 13 '15