For Windows there's the possibility using WebSVN to contribute API imports.
Is this possible for OSX as well Fred ?
One of the API procedures I would like to be available is sel_registerName(str.p-ascii) .
It would be nice if this could be called with an underscore without the need of an import statement in the PureBasic source.
Like sel_registerName_("modifierFlags") .
OSX API imports
OSX API imports
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: OSX API imports
Yes, you can. If you want write access just tell me so I can give it to you and you can update the file with the function you need.
Re: OSX API imports
That would be nice.Fred wrote:Yes, you can. If you want write access just tell me so I can give it to you and you can update the file with the function you need.
Am I correct it should look like this ?
Code: Select all
XIncludeFile "common.pbi"
ImportC "-framework Foundation"
ApiC(sel_registerName, (str.p-utf8))
EndImportWindows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: OSX API imports
Looks good to me. Better create a new foundation.pb file so it keeps organized

