On Thursday, July 29, 2010 04:25:20 am Koen Deforche wrote:
> Hey Mike,
> 
> 2010/7/29 Mike Teehan <[email protected]>:
> > Hello Everyone,
> > 
> > My application creates a global data model in main() and
> > createApplication() passes a pointer to the model into each application.
> >  When a change is made to the model (properly mutex'd, of course), the
> > changes immediately show in the instance that made them, but not any
> > others.  Other instances seem to have access to the updated model, but
> > don't receive update notification.  After referencing the simplechat
> > example, I've tried getUpdateLock and triggerUpdate, but they don't seem
> > to trigger the update in the other instances.
> 
> I think sharing a model between applications is a nice use-case, which
> we have contemplated on supporting before, but is currently not
> supported.
> 

[snip]

Koen,

If I understand you correctly, the global model needs to register each app 
that connects to its signals, and then propagate those signals individually to 
each instance, while holding its updatelock, and then calling its 
triggerupdate().  My model doesn't allow direct modification of its data (all 
ops are through custom member functions to allow proper (hopefully) mutex 
locking).

I think it makes more sense to me to add app* register/deregistering to my 
model and go from there.  Would WCrossAppProxyModel need any sort of locking?  
Other than the updatelock, of course...

Mike

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to