Search found 197 matches

by PaulDaMacMan
Thu May 09, 2019 12:02 am
Forum: Talking LiveCode
Topic: Never Mind! Fixed! Start Player 1 Freezes LC
Replies: 21
Views: 1241

Re: Never Mind! Fixed! Start Player 1 Freezes LC

Hey @NullSet, if you're still interested in doing Music stuff with LC on Mac then have a look at my stuff on GitHub. So far I've made 4 MIDI Music play related LiveCode Builder extensions for Apple (macOS, but should work on iOS too though I have not tested that) https://github.com/PaulMcClernan/LCB...
by PaulDaMacMan
Fri Mar 15, 2019 9:51 pm
Forum: LiveCode Builder
Topic: I need help with binding error
Replies: 3
Views: 487

Re: I need help with binding error

jpags.me wrote:
Fri Mar 15, 2019 2:27 am
I have created a C# DLL. Is that not supported? How can I bind a C# dll file?
I'm not sure if C# is supported.
I know for sure that regular C, C++, Objective C, and Java are supported.

I think the FFI binding is based on this here (but I could be wrong):
https://github.com/libffi/libffi
by PaulDaMacMan
Fri Mar 15, 2019 9:47 pm
Forum: Extending LiveCode
Topic: Livecode builder Foreign Function Interface question.
Replies: 2
Views: 328

Re: Livecode builder Foreign Function Interface question.

BTW, this question should be in the LiveCode Builder section of the forums.
by PaulDaMacMan
Fri Mar 15, 2019 9:44 pm
Forum: Extending LiveCode
Topic: Livecode builder Foreign Function Interface question.
Replies: 2
Views: 328

Re: Livecode builder Foreign Function Interface question.

is the first part the dll name "c:winsparkle>" and the second part "win_sparkle_init!cdecl" the function inside the dll? Yes the 'c' is the language, winsparkle is the name of the dll/library to look into, win_sparkle_init!cdecl is the function to look for. The format is slightly different for bind...
by PaulDaMacMan
Thu Mar 14, 2019 10:44 pm
Forum: LiveCode Builder
Topic: I need help with binding error
Replies: 3
Views: 487

Re: I need help with binding error

try adding the language indicator part of the binding string:
"c:new_dll>multiply_numbers" -- c is for C language
by PaulDaMacMan
Sun Feb 10, 2019 9:14 pm
Forum: Rich Media
Topic: HyperTalk ABC Music Notation via MIDI
Replies: 6
Views: 2139

Re: HyperTalk ABC Music Notation via MIDI

Since my last reply to this thread I have created working (at least partially) LiveCode Builder libraries for binding to CoreMIDI (MIDI out only, a work in progress), AVMIDIPlayer (pretty much complete), and AVAudioUnitSampler (working, but very much a work in progress). https://github.com/PaulMcCle...
by PaulDaMacMan
Sun Feb 10, 2019 9:08 pm
Forum: Announcements
Topic: mergAndroid released!
Replies: 7
Views: 3325

Re: mergAndroid released!

Monte is on the https://Gitter.im LiveCode chat board fairly often (where he's helped me out with some LiveCode builder problems)
by PaulDaMacMan
Sun May 20, 2018 2:30 pm
Forum: LiveCode Builder
Topic: Returning pointers to LCS
Replies: 2
Views: 855

Re: Returning pointers to LCS

It would be nice if there was a chart for all the different types defined in the different LCB modules (Built-in, Java, ObjC, Emscripten JS). :idea:
by PaulDaMacMan
Wed May 16, 2018 8:39 pm
Forum: LiveCode Builder
Topic: CoreFoundation / C APIs binding strings more examples?
Replies: 2
Views: 756

Re: CoreFoundation / C APIs binding strings more examples?

This thread was pretty much answered in this thread:
http://forums.livecode.com/viewtopic.php?f=93&t=31013

The binding string format for CF-CoreFoundation/ C-API stuff in macOS is:
c:FrameWorkBundleName.framework>functionName
by PaulDaMacMan
Tue May 15, 2018 7:46 pm
Forum: LiveCode Builder
Topic: CGWindowListCopyWindowInfo, CFArrayRef, NSArray, and __bridge
Replies: 6
Views: 1283

Re: CGWindowListCopyWindowInfo, CFArrayRef, NSArray, and __bridge

Monte helped me figure this out. Here is the correct FFI syntax: private foreign handler CGWindowListCopyWindowInfo(in pListOptions as Integer, in pRelativeToWindow as CUint) returns ObjcRetainedId binds to "c:CoreGraphics.framework>CGWindowListCopyWindowInfo" So for CF CoreFoundation / C APIs that...
by PaulDaMacMan
Sat May 12, 2018 1:40 am
Forum: LiveCode Builder
Topic: Testing if a LCB Library or Widget is installed from LCS
Replies: 3
Views: 852

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 var...
by PaulDaMacMan
Fri May 11, 2018 7:29 pm
Forum: LiveCode Builder
Topic: Help with macOS system status bar menu
Replies: 9
Views: 1871

Re: Help with macOS system status bar menu

Good to see some confirmation that I was on the right track (with retained and storing in module level variable). I was just trying to wrap my head around this some more this morning, reading this stuff: https://developer.apple.com/library/content/documentation/CoreFoundation/Conceptual/CFMemoryMgmt...
by PaulDaMacMan
Thu May 10, 2018 4:20 pm
Forum: LiveCode Builder
Topic: Testing if a LCB Library or Widget is installed from LCS
Replies: 3
Views: 852

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

I found it, you check the contents of the loadedExtensions.

Still not sure about how to check meta info, like the version number, of a loaded extensions. It seems like libs that come with LC have a functions that returns it's version.
by PaulDaMacMan
Wed May 09, 2018 9:48 pm
Forum: LiveCode Builder
Topic: CoreFoundation / C APIs binding strings more examples?
Replies: 2
Views: 756

Re: CoreFoundation / C APIs binding strings more examples?

http://forums.livecode.com/viewtopic.php?f=93&t=25463&start=15 I dug up this old thread which helped a bit... So if it's a C API (like CFoundation stuff) that's in the System, part of the available OS API's, I shouldn't need to worry about a path to a lib or anything (3rd party dynamic libs in a re...
by PaulDaMacMan
Wed May 09, 2018 6:11 pm
Forum: LiveCode Builder
Topic: Testing if a LCB Library or Widget is installed from LCS
Replies: 3
Views: 852

Testing if a LCB Library or Widget is installed from LCS

I know I saw the answer to this somewhere before, but I can't seem to find it now. How do you test if a certain Widget or LCB Library is installed from LiveCode script? And also how to check if it's a certain version of the target extension?

Thanks in Advance.

Go to advanced search