× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Basically, I cause the item I want to refresh to be selected, then fire
an the refresh selected event.

While this technique works ... it does result in the parent node being
selected after the refresh is complete.

I tried using the SystemResourceChangeEvent.EVENT_CHANGE_CHILDREN
instead of EVENT_REFRESH_SELECTED, but that causes the parent node to
collapse.

Digging around further I think I might have just found a solution.

If I fire the SystemResourceChangeEvent.EVENT_REFRESH_REMOTE event type,
the parent & child are updated... but only in that specific
super-parent-node (the parents parent).

Based on the fact that the getAbsoluteName method returns the same text
for identical objects in the tree, I would all nodes that represent the
same remote object to update. I added some debug code to the
getAbsoluteName method so that it tells me when the method is invoked, I
know that the expanded subnodes are being queried ... so I would expect
the various items to be updated.

Another thing that might be related is the fact that the
refreshRemoteObject method is never being invoked when the the
EVENT_REFRESH_REMOTE event is fired.

david



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.