Search found 241 matches

by PaulDaMacMan
Tue Mar 31, 2020 8:38 pm
Forum: LiveCode Builder
Topic: using additional C libraries via FFI
Replies: 3
Views: 225

Re: using additional C libraries via FFI

Not 100% sure, but if it's a dynamic linked lib then maybe try putting the foreign lib in Your_LCB_Project_Folder/code/x86_64-mac/
by PaulDaMacMan
Sat Mar 28, 2020 5:09 pm
Forum: Using Plugins for Customizing the LiveCode IDE
Topic: Custom keyboard
Replies: 57
Views: 9838

Re: Custom keyboard

Since I've been reviving zombie posts, and reading many of the down-the-rabid-hole conversations they inspired months ago, I thought I'd share my experience in making a custom keyboard of sorts on macOS in LiveCode here: https://www.youtube.com/watch?v=s_knX8mJg1c In this video I'm playing the alpha...
by PaulDaMacMan
Fri Mar 27, 2020 1:48 am
Forum: Feature Proposals
Topic: Replace LiveCode Script with JavaScript, forever
Replies: 48
Views: 4590

Re: Replace LiveCode Script with JavaScript, forever

FourthWorld wrote:
Fri Mar 27, 2020 12:37 am
The OP left the room after his first post here, two months ago.
I know, I needed a break from working and I was bored/perusing the boards and just wanted to throw in my 0.5 cents.
by PaulDaMacMan
Thu Mar 26, 2020 9:33 pm
Forum: Feature Proposals
Topic: Replace LiveCode Script with JavaScript, forever
Replies: 48
Views: 4590

Re: Replace LiveCode Script with JavaScript, forever

I always think these sort of statements about missing some crap like "parameter context matching" or "lambda functions" come from nerd-elitists. Many of the rest of the OP makes me think the OP isn't as familiar with LC has they clam, as well as the history (the creation JavaScript was inspired by H...
by PaulDaMacMan
Thu Mar 26, 2020 8:47 pm
Forum: Announcements
Topic: LiveCodeShare upgrade in progress
Replies: 4
Views: 277

Re: LiveCodeShare upgrade in progress

I wouldn't worry about any confusion with that "LiveCodeShare" Android App:
Installs
1+
by PaulDaMacMan
Thu Mar 26, 2020 6:00 pm
Forum: LiveCode Builder
Topic: Blocks Handlers Context Objects in LCB
Replies: 0
Views: 156

Blocks Handlers Context Objects in LCB

I'm trying to set up some callback handlers in LCB/FFI ... some of these things are looking to receive a context object pointer. I'm not exactly sure what this means. I've looked it up on the web and in several books about Objective C and it's still not clear to me what this is looking for to have p...
by PaulDaMacMan
Wed Mar 25, 2020 5:37 pm
Forum: LiveCode Builder
Topic: Text-to-speech TTS for macOS 10.6+
Replies: 9
Views: 1381

Re: Text-to-speech TTS for macOS 10.6+

I wasn't referring so much to the lib e OS version, as to the fact that the "LC way" should not be betrayed. If I have 2 TTS libraries, one for OSX/Win and one that I am building for iOS/Android, why don't unify them with the same commands and functions names? How can a newbie make sense of it? And...
by PaulDaMacMan
Wed Mar 25, 2020 8:51 am
Forum: LiveCode Builder
Topic: Text-to-speech TTS for macOS 10.6+
Replies: 9
Views: 1381

Re: Text-to-speech TTS for macOS 10.6+

I would be interested on your comment on my last post, regarding the new speech library introduced with LC9.6.0Dp3. https://forums.livecode.com/viewtopic.php?f=4&t=33805&start=15 you could always take a stab at building your own library for AVSpeechSynth in LiveCode Builder. Anyway, Simon and you p...
by PaulDaMacMan
Wed Mar 25, 2020 7:22 am
Forum: LiveCode Builder
Topic: Text-to-speech TTS for macOS 10.6+
Replies: 9
Views: 1381

Re: Text-to-speech TTS for macOS 10.6+

I would be interested on your comment on my last post, regarding the new speech library introduced with LC9.6.0Dp3. https://forums.livecode.com/viewtopic.php?f=4&t=33805&start=15 My comment would be similar to LC Mark's reply, if you have Indy or better LC edition I would try moving a copy of the 9...
by PaulDaMacMan
Wed Mar 25, 2020 2:28 am
Forum: LiveCode Builder
Topic: How do I deal with Code Blocks?
Replies: 26
Views: 1802

Re: How do I deal with Code Blocks?

So here's a crash-log from that other callback that's crashing (CoreMIDISetupChangedCallbackProc): Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x00007ff9447cb680 Exception Note: EXC_CORPSE_NOTIFY VM Regio...
by PaulDaMacMan
Tue Mar 24, 2020 11:03 pm
Forum: LiveCode Builder
Topic: How do I deal with Code Blocks?
Replies: 26
Views: 1802

Re: How do I deal with Code Blocks?

Hmmm... could you flush specific messages from the queue rather than brute-forcing it, i.e., leave the callback messages in place? Yeah, that would be a better way to flush messages to stop the check loop, but now that I know what the problem was I just moved the too-early flushing to later in the ...
by PaulDaMacMan
Tue Mar 24, 2020 9:28 pm
Forum: LiveCode Builder
Topic: How do I deal with Code Blocks?
Replies: 26
Views: 1802

Re: How do I deal with Code Blocks?

OK, I think I figured it out for the AVMIDIPlayerStopped calback and it was actually two things going on. 1) I had RetainedIds where I shouldn't have (which I guess was sometimes making Zombie player objects?) 2) My test stack has a "Stop" button that stoppeds an LCS position-check loop and flushes ...
by PaulDaMacMan
Tue Mar 24, 2020 7:17 pm
Forum: LiveCode Builder
Topic: How do I deal with Code Blocks?
Replies: 26
Views: 1802

Re: How do I deal with Code Blocks?

@PaulDaMacMan: I've taken a quick look at the AVMidi code... I wonder if: private foreign handler objC_AVMIDIPlayerAlloc() returns ObjcRetainedId binds to "objc:AVMIDIPlayer.+alloc" private foreign handler objC_AVMIDIPlayerCurrentPosition(in pAVPlayerRef as ObjcRetainedId) returns NaturalFloat bind...
by PaulDaMacMan
Tue Mar 24, 2020 3:21 am
Forum: LiveCode Builder
Topic: How do I deal with Code Blocks?
Replies: 26
Views: 1802

Re: How do I deal with Code Blocks?

Hmmm looks like it could be because you are deleting the block pointer too soon - can you post your code? That's what I was leaning towards, a zombie object somewhere, but I've tried moving it to various spots within the code, still haven't figured it out. This is the main chunk of code that I've b...
by PaulDaMacMan
Mon Mar 23, 2020 8:35 am
Forum: LiveCode Builder
Topic: How do I deal with Code Blocks?
Replies: 26
Views: 1802

Re: How do I deal with Code Blocks?

Just to let you know - we've taken the code which was hashed out on Gitter, cleaned it up, commented it and it will be included in the objc module from 9.6-DP-3 (PR is here: https://github.com/livecode/livecode/pull/7291 ). We've now used this code internally on both macOS and iOS so are reasonably...

Go to advanced search