I have functioning Xojo app for the OSX desktop and I want to make version for the ipad. The application send remote control commands to a media server via TCP. I do not see any info on doing this in Xojo on the iPad currently. I assume I am just not seeing it (as normal for me), can someone point me in the right direction if it is available?
Hmm, seems to be very little info there on it, granted my limited experience. I am used to dropping the TCPSocket class on the frame and then configuring and opening it. I am guessing it is a Class and I kinda have to do a few more things to getting it going on the iPad. Not as simple as I had hoped… I will keep reading and poking at it.
[quote=282628:@Michel Bujardet]- Menu Insert/Class
Set the super of the class to Xojo.Net.TCPSocket
Drag an instance of that class to a view
Proceed as you would in Desktop.
Make sure to read carefully the LR, there are differences with the classic desktop control.[/quote]
Really? No offense, but why create a subclass? Drag a “Generic Object” from the Library to the View and set its class I still don’t know why this text field is labelled “Super” to “Xojo.Net.TCPSocket”.
There is no difference in that regard between Xojo and RS.
[quote=282654:@Andrew Lambert]If TCPSocket1 IsA Window1.TCPSocket1 Then // IsA detects classes, not instances
MsgBox(“Automatic subclass of TCPSocket”)
End If[/quote]
This code will not compile.
Strange, it indeed works with RS but not with Xojo for TCPSocket. It does not compile for regular controls (like Label, which I mentioned above) in RS and Xojo.
This is what is going on I think: introspection shows that a wrapper is needed for a non-RectControl subclass to act as control in the window editor. In RS this wrapper was exposed to the IsA operator, in Xojo it is not exposed to IsA.
In Xojo the wrapper is a class called Window1._wrapper_TCPSocket1. In RS it was called Window1.TCPSocket1.