Search found 168 matches

by livecodeali
Fri Aug 24, 2018 10:56 am
Forum: LiveCode Builder
Topic: com.livecode.widget.ColorPicker
Replies: 17
Views: 920

Re: com.livecode.widget.ColorPicker

It doesn't have to be a whole new widget, but yes, within the widget you need specific logic for returning a value - see the 'currently popped up' syntax in the dictionary, or the code in the icon picker.
by livecodeali
Wed Aug 22, 2018 3:59 pm
Forum: LiveCode Builder
Topic: com.livecode.widget.ColorPicker
Replies: 17
Views: 920

Re: com.livecode.widget.ColorPicker

In general widgets require specific coding to handle the case when they are popped up by some other script
by livecodeali
Wed Aug 22, 2018 3:53 pm
Forum: LiveCode Builder
Topic: com.livecode.widget.ColorPicker
Replies: 17
Views: 920

Re: com.livecode.widget.ColorPicker

There is no such widget - I think the docs were intended to be illustrative rather than literal there. It would be better to replace with a working example though, so it could be changed to "com.livecode.widget.iconpicker" with selectedIcon instead of currentColor. If you are asking because you actu...
by livecodeali
Wed Aug 22, 2018 3:44 pm
Forum: LiveCode Builder
Topic: Default Script
Replies: 11
Views: 532

Re: Default Script

I'm still confused as to the specific issue here - if the handler shows up in the default handler list (and nothing else) then that is the expected behavior - we did away with default scripts actually populating the script, they merely define a list of handlers for the default handler list. If I loa...
by livecodeali
Tue Aug 14, 2018 8:52 am
Forum: LiveCode Builder
Topic: Default Script
Replies: 11
Views: 532

Re: Default Script

No, it should happen automatically. However, I'm wondering if there may be a docs issue here - we changed default scripts so that the handlers specified show up in the left hand side, rather than the script actually being automatically filled in - does your default script consist of (a) handler(s) a...
by livecodeali
Mon Aug 13, 2018 10:25 pm
Forum: LiveCode Builder
Topic: Default Script
Replies: 11
Views: 532

Re: Default Script

support should be lowercase, although possibly that isn't the issue if you're on an os with a case insensitive file system. Your default script stack needs to be named "your.widget.identifier.__DefaultScript", eg: script "com.livecode.widget.navbar.__DefaultScript" Other than that, the only reason I...
by livecodeali
Mon Aug 13, 2018 9:33 am
Forum: LiveCode Builder
Topic: One extension with multiple native library implementations
Replies: 4
Views: 287

Re: One extension with multiple native library implementations

Yes, the cross platform button example is how we would recommend structuring such an extension: https://github.com/livecode/livecode/pull/6266 However it does potentially over-complicate things it if the extension is very simple, and you can do as Trevor suggests (in fact the first LiveCode widget t...
by livecodeali
Mon Aug 13, 2018 9:29 am
Forum: LiveCode Builder
Topic: Canvas
Replies: 8
Views: 557

Re: Canvas

Hi Max, I added an overview of the canvas API with examples in the Extending LiveCode document in the 9.0 GM release: https://github.com/livecode/livecode-ide/blob/develop/Documentation/guides/Extending%20LiveCode.md#canvas-api Please give that a read and let me know what we can do to improve it. Th...
by livecodeali
Sun May 20, 2018 9:45 pm
Forum: Android Deployment
Topic: Min Android API vs target Android API in Google Play
Replies: 5
Views: 704

Re: Min Android API vs target Android API in Google Play

Yes, you could change the template manifest - it's at LiveCode Community 9.0.0.app/Contents/Tools/Runtime/Android/Manifest.xml for example on Mac
by livecodeali
Fri May 11, 2018 3:12 pm
Forum: LiveCode Builder
Topic: Testing if a LCB Library or Widget is installed from LCS
Replies: 3
Views: 439

Re: Testing if a LCB Library or Widget is installed from LCS

In the IDE you can do revIDEExtensions() to get an array with all the metdata. You can cut that down with parameters, eg revIDEExtensions("library") or revIDEExtensions("widget", "installed"). For individual extension properties, use revIDEExtensionProperty(<kind>, <propName>) where propName is vari...
by livecodeali
Fri Apr 27, 2018 10:41 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Rotating a text field
Replies: 5
Views: 783

Re: Rotating a text field

The extensions course contains code for a rotated text widget here (click the downloads icon on the right)
by livecodeali
Fri Apr 27, 2018 10:39 pm
Forum: LiveCode Builder
Topic: FFI Help wrapping ObjC
Replies: 16
Views: 1486

Re: FFI Help wrapping ObjC

Hmm, that suggests something is being over-released, which means it is likely being marked as retained when it shouldn't be... I'm sure it will be something simple!
by livecodeali
Fri Apr 27, 2018 1:11 pm
Forum: LiveCode Builder
Topic: Where to put android library files
Replies: 5
Views: 641

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: 1486

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: 1486

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...

Go to advanced search