Can externals send messages to object that called handler?

Are you developing an External using the LiveCode Externals SDK?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Can externals send messages to object that called handler?

Post by trevordevore » Thu Feb 11, 2016 2:03 pm

I ran into an issue with revXML the other day. I had two handlers that each wanted to parse some XML with messages (I don't want to create a tree). One in a library stack, the other in the active stack. The issue is that revXML sends messages to the current card of the current stack rather than directly to the object that called revXMLCreateTree. This is problematic as I don't see a way of independently handling the messages to differentiate between the XML being parsed. Am I missing something?

Is it possible for an external to target the object that called a handler in it so that messages can be brokered appropriately?
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Can externals send messages to object that called handle

Post by Mikey » Fri Feb 12, 2016 2:12 pm

That's the way that all of Monte's externals go - the object that calls the external gets event messages.

Post Reply

Return to “Building Externals”