Search found 190 matches

by PaulDaMacMan
Sun May 20, 2018 2:30 pm
Forum: LiveCode Builder
Topic: Returning pointers to LCS
Replies: 2
Views: 307

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

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

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

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

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

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

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

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.
by PaulDaMacMan
Wed May 09, 2018 1:31 am
Forum: LiveCode Builder
Topic: CoreFoundation / C APIs binding strings more examples?
Replies: 2
Views: 289

CoreFoundation / C APIs binding strings more examples?

I'm getting the hang of Objective C binding string stuff (having a blast!), and I've played around a bit with the Android/JAVA binding string stuff, but I'm a bit stumped by C bindings. Are there any more examples of binding to C API's, like ones that come with an OS (not foreign lib binaries in a r...
by PaulDaMacMan
Wed May 09, 2018 1:11 am
Forum: Rich Media
Topic: HyperTalk ABC Music Notation via MIDI
Replies: 4
Views: 1059

Re: HyperTalk ABC Music Notation via MIDI

Next up wrapping Core MIDI for some live real-time fun! Actually, I might stick with wrapping the Objective C AVFoundation / AVKit stuff like AVAudioUnitMIDIInstrument and AVAudioUnitSampler because I don't think there are any examples of wrapping CoreFoundation's C API's (which is what CoreMIDI is...
by PaulDaMacMan
Tue May 08, 2018 8:37 pm
Forum: Rich Media
Topic: HyperTalk ABC Music Notation via MIDI
Replies: 4
Views: 1059

Re: HyperTalk ABC Music Notation via MIDI

I need to dig out the UDI's PlayPMD ABC/MIDI Library (which I updated a little bit), and a few other music demos I created or collected over the decades (ancient HyperCard stacks).
by PaulDaMacMan
Tue May 08, 2018 8:29 pm
Forum: Rich Media
Topic: HyperTalk ABC Music Notation via MIDI
Replies: 4
Views: 1059

Re: HyperTalk ABC Music Notation via MIDI

Since I started this thread 7 months ago LiveCode 9 has come out with FFI (Foreign Function Interface) pretty much ready for prime time, and I've created a mostly complete LiveCode Builder LCB wrapper for AVMIDIPlayer that is available in macOS 10.9 (actually I think it was included earlier, 10.7?) ...
by PaulDaMacMan
Fri May 04, 2018 2:57 pm
Forum: LiveCode Builder
Topic: Help with macOS system status bar menu
Replies: 9
Views: 642

Re: Help with macOS system status bar menu

have it to the point where the image file I pass to `TestMyMenu` appears in the system menu bar for a brief second and then disappears I just tried it, I don't even get the image showing even for a brief second. I moved the object variables to module scoped private variable myVariable as ObjcRetain...
by PaulDaMacMan
Thu May 03, 2018 2:57 am
Forum: LiveCode Builder
Topic: Help with macOS system status bar menu
Replies: 9
Views: 642

Re: Help with macOS system status bar menu

Ah, is that part of Levure Application Framework? I keep meaning to check that out but never get around to it.
by PaulDaMacMan
Wed May 02, 2018 11:10 pm
Forum: LiveCode Builder
Topic: Help with macOS system status bar menu
Replies: 9
Views: 642

Re: Help with macOS system status bar menu

I was going to take a crack at this myself to add to the macOS tools lib, but I got too into the AVMIDPlayer thing, along with some other, paying, work right now, along with my day job and fam/kids...shwew. I don't know if it will help you figure anything out but I put NSStatusBar Menu AppleScriptOb...

Go to advanced search