Search found 20 matches

by robertfern
Wed Feb 07, 2024 1:42 am
Forum: Bugs - Mac OSX
Topic: Compile console not passing parameters
Replies: 1
Views: 154

Compile console not passing parameters

I haven’t tested this on the other platforms, but on my Mac, the ide is not passing the parameters in the compiler options to my console program so that I can debug it. If I compile as executable I get the parameters when I type them in the terminal.
by robertfern
Wed Feb 22, 2023 5:16 pm
Forum: Mac OSX
Topic: Dylibs are missing in Big Sur and above and only exists in shared cache
Replies: 0
Views: 303

Dylibs are missing in Big Sur and above and only exists in shared cache

Use import_C or OpenLibrary doesn't seem to work on libraries that Apple removed in BigSur and Above and only exists in the shared cache.

Has anyone gotten any missing dylib to load properly?

Article talking about this below:
https://developer.apple.com/forums/thread/655588
by robertfern
Fri Feb 10, 2023 8:55 pm
Forum: Mac OSX
Topic: Getting CPU & core temperatures on Mac
Replies: 1
Views: 317

Re: Getting CPU & core temperatures on Mac

Here is a modified version where I added GPU temperature ; Converted from C source code on ; https://github.com/lavoiesl/osx-cpu-temp/blob/master/smc.c ; https://github.com/acidanthera/VirtualSMC/blob/master/Docs/SMCKeys.txt - list of SMC Keys ; https://alwinesch.github.io/test-xbmc/Leia/kodi-base/d...
by robertfern
Fri Feb 10, 2023 5:14 pm
Forum: Mac OSX
Topic: Getting CPU & core temperatures on Mac
Replies: 1
Views: 317

Getting CPU & core temperatures on Mac

Here is a console app that will return the CPU & individual core temperatures. I was able to convert a C program "osx-cpu-temp" from Sébastien Lavoie on GitHub. https://github.com/lavoiesl/osx-cpu-temp ; Converted from C source code on ; https://github.com/lavoiesl/osx-cpu-temp/blob/ma...
by robertfern
Fri Mar 05, 2021 7:49 pm
Forum: Mac OSX
Topic: Problem porting from PC to Mac
Replies: 18
Views: 9011

Re: Problem porting from PC to Mac

The mac (& unix) use "/" (slash) for directory delimiters, whereas Windows uses "\" (backslash) change imagePath3 = path$ + "images\header.jpg" to imagePath3 = path$ + "images/header.jpg" also Mac Programs are really a special directory called a "bund...
by robertfern
Fri Aug 21, 2020 5:31 pm
Forum: Coding Questions
Topic: SendKeys on MAC
Replies: 2
Views: 916

Re: SendKeys on MAC

Try this topic

viewtopic.php?f=19&t=49200

Hope this helps
by robertfern
Wed Jun 17, 2020 7:29 pm
Forum: Mac OSX
Topic: Integrating AppleScript to your app
Replies: 6
Views: 4722

Re: Integrating AppleScript to your app

Can you show a modified version that gets a list as a parameter, and returns a list that AppleScript understands. Also how to modify the last three commands to handle multiple commands. Define subClass = objc_allocateClassPair_(objc_getClass_("NSScriptCommand"),"myTestCommand",0)...
by robertfern
Wed Apr 01, 2020 7:07 pm
Forum: Mac OSX
Topic: How to use NSAppleEventManager to respond to AppleEvents
Replies: 0
Views: 2003

How to use NSAppleEventManager to respond to AppleEvents

The only thing I could find was the old topic on AppleEvents for carbon versions of PureBasic.

Nobody seems to have any script examples for using Cocoa to respond to AppleEvents so I can make my programs Scriptable.

Any help would be appreciated.
by robertfern
Thu Dec 12, 2019 12:40 am
Forum: Coding Questions
Topic: ColorRequester gets stuck in a loop.
Replies: 6
Views: 1065

Re: ColorRequester gets stuck in a loop.

I used a CanvasGadget since text gadget cant get mouse clicks. Also you were missing a EventType call, which is why you were getting so many events for the gadget. #CanvasGadget = 0 If OpenWindow(0, 0, 0, 300, 200, "colorPicker", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ;StringGa...
by robertfern
Thu Sep 19, 2019 10:08 pm
Forum: Mac OSX
Topic: IKEv2 VPN Conection
Replies: 1
Views: 2950

IKEv2 VPN Conection

Does anyone know how to make the Mac start an IKEv2 protocol VPN that has been setup in the network System Preferences?

I don't even know where to start using CocoaMessage

Any help would be appreciated.
by robertfern
Wed Sep 18, 2019 12:00 pm
Forum: Coding Questions
Topic: Getting variable output twice after Select Case Menu
Replies: 3
Views: 890

Re: Getting variable output twice after Select Case Menu

You forgot another select statement to handle the "MainWindowLoop" Enumeration #MAIN_WINDOW #MAIN_BUTTON_EXIT #MAIN_BUTTON_0 #FLAGS = #PB_Window_SystemMenu | #PB_Window_ScreenCentered EndEnumeration Procedure Button_0() x = 1 Debug x EndProcedure Procedure MainWindow() OpenWindow(#MAIN_WIN...
by robertfern
Fri Aug 16, 2019 12:08 am
Forum: Tricks 'n' Tips
Topic: larger number calculations with positive integers
Replies: 5
Views: 3264

Re: larger number calculations with positive integers

I cant seem to get this library to compile.

First, the compiler doesn't like the HexQ() function. Says it's deprecated.

Second, the Assembler throws up errors, that i have no idea about.

I'm on High Sierra with PB 5.70
by robertfern
Thu Nov 15, 2018 11:02 pm
Forum: Coding Questions
Topic: Colouring rows in a ListIconGadget problems
Replies: 10
Views: 1492

Re: Colouring rows in a ListIconGadget problems

Just so you know, SetGadgetItemColor() doesn't work on Mac as per PB help. This function is supported by the following gadgets: - ListIconGadget() - TreeGadget() Note: SetGadgetItemColor() isn't supported on MacOS X with these two gadgets. Here is a one liner for the Mac to have alternating row colo...
by robertfern
Thu Nov 15, 2018 7:54 pm
Forum: The PureBasic Editor
Topic: Mac Version Find Again shortcut
Replies: 1
Views: 1959

Mac Version Find Again shortcut

Just a minor annoyance.

The "Find Next" command on a Mac should be Command-G
It currently is Shift-Command-F
and Find Previous should be Shift-Command-G

It would be nice if it followed the standard Mac conventions.

Thanks...
by robertfern
Wed May 16, 2018 7:30 pm
Forum: Windows
Topic: Help reqd with Media Foundation interfaces
Replies: 6
Views: 3249

Re: Help reqd with Media Foundation interfaces

Hello Ozzie,

Did you ever get the Media Foundation working.

Some sample code would be greatly appreciated
examples for video and audio would be a great help.

Thanks