Wilbert, you should get an award. Declaring my procedure as you suggested made everything work like a charm. Huge, huge thanks!
Apparently, obj and sel are passed natively via swift and objC, which I should have thought about as something similar is happening in c++.
Erion
Search found 97 matches
- Thu Sep 24, 2015 3:01 pm
- Forum: Coding Questions
- Topic: Done (OSX) A few interesting issues with NSSpeechSynthesizer
- Replies: 9
- Views: 3436
- Thu Sep 24, 2015 2:33 pm
- Forum: Coding Questions
- Topic: Done (OSX) A few interesting issues with NSSpeechSynthesizer
- Replies: 9
- Views: 3436
Re: (OSX) A few interesting issues with NSSpeechSynthesizer
Wilbert,
I checked out the Cocoa methods thread. Apart from not specifying a type for my delegate function parameters and using your methods to create my class, everything seems to be the same.
The speech manager functions are sadly deprecated since 10.8.
My delegate function is called, honouring a ...
I checked out the Cocoa methods thread. Apart from not specifying a type for my delegate function parameters and using your methods to create my class, everything seems to be the same.
The speech manager functions are sadly deprecated since 10.8.
My delegate function is called, honouring a ...
- Thu Sep 24, 2015 1:17 pm
- Forum: Coding Questions
- Topic: Done (OSX) A few interesting issues with NSSpeechSynthesizer
- Replies: 9
- Views: 3436
Re: (OSX) A few interesting issues with NSSpeechSynthesizer
Huge thanks Wilbert, I'm going to check these out.
Erion
Erion
- Thu Sep 24, 2015 12:51 pm
- Forum: Coding Questions
- Topic: Done (OSX) A few interesting issues with NSSpeechSynthesizer
- Replies: 9
- Views: 3436
Re: (OSX) A few interesting issues with NSSpeechSynthesizer
I have done some more investigating, unfortunately my issue is still not fully resolved.
1. It seems that NSRunLoop:run will permanently block my application, I will probably have to use a separate thread. I wonder if I could tap into PB's RunLoop, if any.
2. Using Wilbert's oClassName function, I ...
1. It seems that NSRunLoop:run will permanently block my application, I will probably have to use a separate thread. I wonder if I could tap into PB's RunLoop, if any.
2. Using Wilbert's oClassName function, I ...
- Sun Sep 20, 2015 10:02 am
- Forum: Coding Questions
- Topic: Done (OSX) A few interesting issues with NSSpeechSynthesizer
- Replies: 9
- Views: 3436
Done (OSX) A few interesting issues with NSSpeechSynthesizer
Hi all,
I'm currently trying to implement a speech module in PB. Most things work, however I have a few interesting issues when I try to implement a queue:
1. My didFinishSpeaking function is only called if I don't use a synth function as a parameter to the loop. E.g. if I use isSpeaking, the ...
I'm currently trying to implement a speech module in PB. Most things work, however I have a few interesting issues when I try to implement a queue:
1. My didFinishSpeaking function is only called if I don't use a synth function as a parameter to the loop. E.g. if I use isSpeaking, the ...
- Thu Sep 17, 2015 8:16 pm
- Forum: Coding Questions
- Topic: [solved] (OSX) get/set cocoa property
- Replies: 3
- Views: 1200
Re: (OSX) get/set cocoa property
Marvellous, thank you!
I wasn't expecting getter/setter exposure because of my Windows background, but this definitely makes things easier.
Now I wish we had native Cocoa type conversion, such as NSArray to PB array, etc.
Once again, huge thanks for your help!
I wasn't expecting getter/setter exposure because of my Windows background, but this definitely makes things easier.
Now I wish we had native Cocoa type conversion, such as NSArray to PB array, etc.

Once again, huge thanks for your help!
- Thu Sep 17, 2015 5:43 pm
- Forum: Coding Questions
- Topic: [solved] (OSX) get/set cocoa property
- Replies: 3
- Views: 1200
[solved] (OSX) get/set cocoa property
Hello,
I am trying to retrieve/set various properties for classes, e.g. 'speaking' of NSSpeechSynthesizer.
As far as I know, CocoaMessage() allows methods to be called, but it does not support properties. Is there a way to do this in PB?
Erion
I am trying to retrieve/set various properties for classes, e.g. 'speaking' of NSSpeechSynthesizer.
As far as I know, CocoaMessage() allows methods to be called, but it does not support properties. Is there a way to do this in PB?
Erion
- Thu Jul 30, 2015 7:41 pm
- Forum: Mac OSX
- Topic: [5.31] El Capitan Linker Error
- Replies: 10
- Views: 6283
Re: [5.31] El Capitan Linker Error
Thanks, this seems to have solved my problem.
For some reason other native apps compile with Xcode 6.4, but not PB apps, as they need Xcode 7.
I'm leaving this topic here as it might be useful, at least until Xcode 7 gets released.
Erion
For some reason other native apps compile with Xcode 6.4, but not PB apps, as they need Xcode 7.
I'm leaving this topic here as it might be useful, at least until Xcode 7 gets released.
Erion
- Thu Jul 30, 2015 6:36 pm
- Forum: Mac OSX
- Topic: [5.31] El Capitan Linker Error
- Replies: 10
- Views: 6283
Re: [5.31] El Capitan Linker Error
I'm using Xcode 6.4 with the command line tools installed.
- Thu Jul 30, 2015 12:30 pm
- Forum: Mac OSX
- Topic: [5.31] El Capitan Linker Error
- Replies: 10
- Views: 6283
[5.31] El Capitan Linker Error
Hi all,
PureBasic apps will not compile on either the public beta or the developer previews of Os X 10.11 el Capitan, displaying a linker error:
PureBasic apps will not compile on either the public beta or the developer previews of Os X 10.11 el Capitan, displaying a linker error:
Erionld: library not found for -lgcc_s.10.5clang: error: linker command failed with exit code 1 (use -v to see invocation)
- Tue Jul 01, 2014 3:50 pm
- Forum: Coding Questions
- Topic: [not a bug] 5.30B5 - Unable to select compiler
- Replies: 2
- Views: 1279
Re: 5.30B5 - Unable to select compiler
Hi,
Ah, thank you. I think it shows that I haven't tinkered with adding new compilers for ages
Erion
Ah, thank you. I think it shows that I haven't tinkered with adding new compilers for ages

Erion
- Tue Jul 01, 2014 3:04 pm
- Forum: Coding Questions
- Topic: [not a bug] 5.30B5 - Unable to select compiler
- Replies: 2
- Views: 1279
[not a bug] 5.30B5 - Unable to select compiler
Hello,
It is not possible to select the compiler: Compiler Options -> Use Compiler checkbox.
Only the current PB compiler is visible, e.g. PureBasic 5.30B5 (Windows - x86) in the x86 ide, x64 in the x64 ide.
Thus, at the moment, it is not possible to compile for x64 and x86 in one go.
Erion
It is not possible to select the compiler: Compiler Options -> Use Compiler checkbox.
Only the current PB compiler is visible, e.g. PureBasic 5.30B5 (Windows - x86) in the x86 ide, x64 in the x64 ide.
Thus, at the moment, it is not possible to compile for x64 and x86 in one go.
Erion
- Sat May 31, 2014 7:59 pm
- Forum: Announcement
- Topic: PureBasic 5.30 beta 9 released!
- Replies: 195
- Views: 92527
Re: PureBasic 5.30 beta 1 released!
Congratulations for this great release! I'm really, really glad for the JSon library!
In case you accept small suggestions, could you look into reusing open windows for dialogs please? See this topic http://www.purebasic.fr/english/viewtop ... =3&t=55879
In case you accept small suggestions, could you look into reusing open windows for dialogs please? See this topic http://www.purebasic.fr/english/viewtop ... =3&t=55879
- Sun May 04, 2014 2:35 pm
- Forum: Tricks 'n' Tips
- Topic: TagLib
- Replies: 27
- Views: 18797
Re: TagLib
Hi,
This is very interesting. It appears that everything works as expected here, yet something goes wrong inside TagLib, despite the fact that it reports everything being fine.
If you have another computer, you could try the same example code on the same audio file. Other than that, unfortunately, I ...
This is very interesting. It appears that everything works as expected here, yet something goes wrong inside TagLib, despite the fact that it reports everything being fine.
If you have another computer, you could try the same example code on the same audio file. Other than that, unfortunately, I ...
- Tue Apr 22, 2014 10:04 pm
- Forum: Coding Questions
- Topic: Yet another LinkGrammar Wrapper issue
- Replies: 9
- Views: 2683
Re: Yet another LinkGrammar Wrapper issue
Hi,
Thank you! The alternate pointer to return a struct solved the invalid memory read at address 16 error. Unfortunately, the *dict pointer is still zero, which seems to indicate that linkGrammar is unable to find the appropriate dictionary.
What is even more frustrating is that I have no idea if ...
Thank you! The alternate pointer to return a struct solved the invalid memory read at address 16 error. Unfortunately, the *dict pointer is still zero, which seems to indicate that linkGrammar is unable to find the appropriate dictionary.
What is even more frustrating is that I have no idea if ...