Search found 171 matches

by livecodeali
Fri Apr 27, 2018 1:11 pm
Forum: LiveCode Builder
Topic: Where to put android library files
Replies: 5
Views: 1952

Re: Where to put android library files

Your code and everything looks correct, with the exception of __safe foreign handler JNI_SayHello() returns JString binds to "java:com.example.uhfreader816ubt.HelloAndroid>sayHelloAndroid()Ljava/lang/String;" As the sayHelloAndroid method is static, your binding string should be java:com.example.uhf...
by livecodeali
Fri Apr 27, 2018 1:09 pm
Forum: LiveCode Builder
Topic: FFI Help wrapping ObjC
Replies: 16
Views: 3235

Re: FFI Help wrapping ObjC

Ah! Sorry I totally missed a bunch of things. ObjRetainedId should be used only in the places where the call will increase the ref count- in this case the alloc call. Also you should use ObjcObject everywhere except in the actual foreign handler declarations. So: private variable mAVMIDIPlayerInstan...
by livecodeali
Sat Apr 21, 2018 10:02 pm
Forum: LiveCode Builder
Topic: FFI Help wrapping ObjC
Replies: 16
Views: 3235

Re: FFI Help wrapping ObjC

Yes, "objc:NSURL.+URLWithString:" is a good example of one that doesn't require a call to alloc. I did caveat my statement with both 'I think' and 'the majority' (i.e. > 50%) :wink: it's just a sense I get from my use of it and is by no means a statement of fact! I can't remember if I've posted else...
by livecodeali
Tue Apr 17, 2018 11:11 pm
Forum: LiveCode Builder
Topic: Where to put android library files
Replies: 5
Views: 1952

Re: Where to put android library files

At the moment, LCB extensions can only interface with compiled java classes through foreign handler bindings. So, you will need to compile all the source files into a .jar file (or download a .jar file provided by the vendor) and put it in a folder code/jvm-android next to the lcb file. Then, you wi...
by livecodeali
Tue Apr 17, 2018 5:59 pm
Forum: LiveCode Builder
Topic: FFI Help wrapping ObjC
Replies: 16
Views: 3235

Re: FFI Help wrapping ObjC

You need to alloc an instance of AVMIDIPlayer and call initWithContentsOfURL on the instance returned from alloc. initWithContentsOfURL is an instance method (- rather than + in objective-c terminology) so it needs to be called on an instance of the class, which should be the first parameter. (I thi...
by livecodeali
Mon Apr 09, 2018 9:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: answer "<anything>1234</anything>" is just 1234 ?
Replies: 6
Views: 713

Re: answer "<anything>1234</anything>" is just 1234 ?

The field displayed in the answer dialog uses html text (so you can do answer "<b>This is bold!</b>" And get bold text in the answer dialog. Your tags are being interpreted as html. If you want to use the answer dialog, perhaps use the following instead: command log pValue answer escape(pValue) end ...
by livecodeali
Fri Apr 06, 2018 8:12 am
Forum: Android Deployment
Topic: Foreign Function Interface (FFI) Documentation for Java
Replies: 4
Views: 875

Re: Foreign Function Interface (FFI) Documentation for Java

There's a section in the Extending LiveCode guide now with more detail, in the IDE dictionary guides tab, and also at: https://github.com/livecode/livecode-ide/blob/develop/Documentation/guides/Extending%20LiveCode.md#java Also potentially worth looking at are the java stdlib tests: https://github.c...
by livecodeali
Mon Apr 02, 2018 2:22 pm
Forum: LiveCode Builder
Topic: LCB variable assignment and evaluation confusion
Replies: 1
Views: 798

Re: LCB variable assignment and evaluation confusion

Regarding preferredSize, this is not actually hooked up with the test button in the extension builder, which is arguably a bug - although the behavior currently used is to recreate the widget and containing stack with the same rect it had before, which is quite useful. I suppose if a preferredSize i...
by livecodeali
Wed Mar 28, 2018 8:38 pm
Forum: Talking LiveCode
Topic: PDF printing without printing
Replies: 5
Views: 823

Re: PDF printing without printing

It’s fixed in 9 RC 1 also, if you want to stick with 9.
by livecodeali
Wed Mar 28, 2018 8:17 am
Forum: Talking LiveCode
Topic: PDF printing without printing
Replies: 5
Views: 823

Re: PDF printing without printing

What version are you using? There was a bug in 9 recently with the loading of revPdfPrinter which is possibly what you are seeing: https://quality.livecode.com/show_bug.cgi?id=20814
by livecodeali
Wed Mar 21, 2018 4:48 pm
Forum: LiveCode Builder
Topic: Rotated text example doesn't work
Replies: 7
Views: 1998

Re: Rotated text example doesn't work

In this case the main criterion for not fixing in 8 was (lack of) ease of backporting- unfortunately it would have been a different fix due to the graphics library changes in 9. Also in this case proximity to 9 GM was a factor.
by livecodeali
Thu Mar 15, 2018 2:10 pm
Forum: iOS Deployment
Topic: revSpeak for iOS?
Replies: 7
Views: 1338

Re: revSpeak for iOS?

At the moment it is, yes. revSpeak is an old-style external; it has been around for a long time without much love. Now we have the foreign function interface in LiveCode Builder, it would be relatively easy to create an LCB library extension to implement it, and subsume the functionality of revSpeak...
by livecodeali
Sun Mar 11, 2018 11:18 pm
Forum: LiveCode Builder
Topic: Rotated text example doesn't work
Replies: 7
Views: 1998

Re: Rotated text example doesn't work

Just a quick note to say that this bug has been fixed in the develop branch, so the rotated text example will work on all platforms from 9.0 RC 1
by livecodeali
Sun Feb 25, 2018 10:42 pm
Forum: LiveCode Builder
Topic: NEW Player for Liveocode on Linux
Replies: 4
Views: 1186

Re: NEW Player for Liveocode on Linux

My problem is there is no guide on Livecode builder, so I still can't understand all canvas and text stuff at all. Hi Max, I'm currently trying to write a guide on writing lcb extensions (mainly to include various aspects of interfacing with native objects and libraries), but I can see the basic pa...
by livecodeali
Sat Feb 17, 2018 10:23 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: New to LiveCode- Issue with Documentation
Replies: 9
Views: 1104

Re: New to LiveCode- Issue with Documentation

If you go to the dictionary entry for the field object, you will find a table of associated properties and messages beneath it: Screen Shot 2018-02-17 at 09.15.58.png I can't remember off the top of my head what version this was added in, it's definitely in 9 and probably in 8. Unfortunately this is...

Go to advanced search