PB Mac OSX API examples

Mac OSX specific forum
User avatar
singo
User
User
Posts: 35
Joined: Mon Apr 23, 2007 4:50 am
Location: Nabiac NSW Australia

PB Mac OSX API examples

Post by singo »

Hi,

Can anyone post Mac OSX pb examples that use the Mac API ? The more the better.

I need help getting started with this, I have a nearly finished simple x-platform game that needs some API calls.

Is there something like the Win32 help file for the Mac ?

I have ADSL at work, but I do most of my coding at home and can only get dial-up (I live on acres in the aussie bush).

So a reference I did not have to use on-line would be a real help.

Thanks
Singo
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

This would be interesting to know. I recently got a MacBook Pro and just asked myself if theres anything like the PSDK for Mac OS?
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

--Kale

Image
User avatar
singo
User
User
Posts: 35
Joined: Mon Apr 23, 2007 4:50 am
Location: Nabiac NSW Australia

PB Mac OSX API examples

Post by singo »

These posts are what I was looking for BUT useless as

The first is quite a long conversation with Fred that is totally unsuccessful

and

The second, which did mention instructions and samples, you can't download because of a URL that now leads to a portal and no download.
IMO :shock: it is the existing user base of Win & Linux PB users who can drive the development of the Mac version, me for one want to do x-platform development, all the libraries for Win *might* start getting converted if there were clear written instructions on how to do api calls with a couple of samples and "for dummies" instructions.

Anyone want to help ? Where can I now find this, did anyone download it who can post it somewhere ?
There is an simple example project in the download package
----------------------------------------------------
http://www.xhtmlsoft.com/pb/downloads/
----------------------------------------------------

There is also instructions in the download package.
Enjoy,
SEO
Singo
I guess I'm keen because I'm on 24k dialup :D
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

So there's nothing like the PSDK or MSDN.com for Macintosh? Apple does have an API tough, does it? :x
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

For Carbon, the 'SDK' is here :
http://developer.apple.com/documentation/Carbon/
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Thanks a bunch!
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
localhero
New User
New User
Posts: 7
Joined: Tue Sep 05, 2006 12:12 pm
Location: UK

Post by localhero »

Just found out that if you choose 'help/documentation' from the Xcode tools menu you get the list of all the Apple API reference docs (including the carbon library). If you then choose 'API Search' from the top right search box you get a list of all the functions/types/ constants/macros available. The syntax is just a double click away for each item.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Precious hint, thanks mate. Image
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
singo
User
User
Posts: 35
Joined: Mon Apr 23, 2007 4:50 am
Location: Nabiac NSW Australia

Re: PB Mac OSX API examples

Post by singo »

I now have a Intel as well as a PowerPC Mac, so will be trying to make all my code work on both Mac & Win platforms.

Thanks for the info, now we just need a few examples posted...

Singo
Nabiac, Australia
Singo
Win10, Win7, Debian x86 & OSX ~ PB 5.70 LTS
Minimbah NSW Australia
jamirokwai
Enthusiast
Enthusiast
Posts: 796
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: PB Mac OSX API examples

Post by jamirokwai »

Hi there,

WilliamL compiled some API-Examples for Mac OS X.
You may find it here: http://www.purebasic.fr/english/viewtopic.php?t=43583
Regards,
JamiroKwai
User avatar
singo
User
User
Posts: 35
Joined: Mon Apr 23, 2007 4:50 am
Location: Nabiac NSW Australia

Re: PB Mac OSX API examples

Post by singo »

Thanks JamiroKwai thats just what I need to get started! and thanks to WilliamL for making the list
Singo
Win10, Win7, Debian x86 & OSX ~ PB 5.70 LTS
Minimbah NSW Australia
Post Reply