In this quick tutorial we will learn how to create a cross-platorm code in REALbasic that will work only with specific platform. Watch it, learn it, enjoy it!
As you can see it’s very easy to create a multi-platform code that will interact with specific platform. Like I said it was a quick lesson
1 2 3 4 5 6 7 | #if TargetWin32 MsgBox ("You are running MS Windows") //Windows specific code here #elseif TargetMacOS MsgBox ("You are running Mac OS") //Macintosh specific code goes here. #elseif TargetLinux MsgBox ("You are running Linux") //Linux specific code goes right here. #endIf |
Hello i follow you everyday, could you make a tutorial that explains how to save and read application preferences?
Hello,
I will create in near future a tutorial showing how to save and read application preferences using REALbasic.
Regards
Jakub
ok, thanks!
There is some source code at http://www.thezaz.com/opensource/realbasic/mda/ for the Multiple Document Application that has some nice code for preferences that works on all platforms. It’s not using platform specific preferences but it works well.
thanks Bob Keeney, i try this code and work all fine!