Existing users, log in.  New users, create a free account.  Lost password?

Mac OS X  |  Web & Software Development  |  Other Developer Tools  |  plist Class for REALbasic

plist Class for REALbasic

plist Class for REALbasic - 2.11.1

stores your app's preferences

All Time: (5.0)
This Version: Not rated (0.0)
Current Version: 2.11.1
Release Date: 2006-05-17
License: Freeware
Downloads (this version): 2,126
Downloads (all versions): 7,565

Feedback Summary:

This Version:
Overall Rating: Not rated (0.0) Features: Not rated (0.0) Support: Not rated (0.0)
Ease of Use: Not rated (0.0) Quality / Stability: Not rated (0.0) Price: Not rated (0.0)
Add Your Feedback

Key to Types of Feedback:

ReviewsReviews   TroubleshootingTroubleshooting   Usage TipsUsage Tips   Developer NotesDeveloper Notes   CommentaryCommentary   Featured ReviewsFeatured Reviews

All Feedback: 1 - 10 of 10



plist Class for REALbasic Usage TipFixed version available - Version: 2.11.1, 1/4/2010 05:07PM PST

(1 of 1 users found this comment useful)

MarkusWinter
First I would like to say that the plist class is excellent - Kudos to Maccrafter. However I reported several serious bugs and their fixes in Nov 2007 which were still not fixed in the latest release available on the homepage (but not here on versiontracker). As the source code is available I fixed those bugs myself.

You can download the fixed plist here:

http://dl.dropbox.com/u/992591/REALbasic/Classes/plist%202010-01-04.zip

and an introduction on how to use it here

http://www.declaresub.com/wiki/index.php/Property_lists_and_how_to_make_them_using_the_plist_class

Enjoy.
Post a commentAlert Admin

plist Class for REALbasic Troubleshooting ReportTwo more problems - Version: 2.11.1, 7/11/2008 10:51AM PST

MarkusWinter
(1) Don't use GetReal & SetReal - they are suppossed to replace GetDouble & SetDouble but they don't work (haven't had time to locate the error yet)

(2) As soon as I add the plist (but not plist dict) to my app the app looses it's menubar in the IDE. Even when you set the menu bar again, save it and load it - then the app menubar is gone again
Post a commentAlert Admin

plist Class for REALbasic Troubleshooting ReportBug repair - Version: 2.11.1, 11/12/2007 05:48AM PST

MarkusWinter
Doh.

Replacement should have been

values.value(key) = Format(v, "-#.#################")

Post a commentAlert Admin

plist Class for REALbasic ReviewEasiest way to make proper preference files in REALbasic - Version: 2.11.1, 11/3/2007 03:17AM PST

MarkusWinter
Takes out a lot of hassle, and is versatile and stable.

Developer seems no longer reachable under the address given at the website but as you get the complete source code you can fix any bugs yourself.
Post a commentAlert Admin

plist Class for REALbasic Troubleshooting ReportSame bug in SetReal - Version: 2.11.1, 11/2/2007 07:45AM PST

MarkusWinter
The same bug is in SetReal

Replace

values.value(key)=Str(v)

with

values.value(key)=Format(v, "############")

End Sub

Post a commentAlert Admin

plist Class for REALbasic Troubleshooting ReportPossible bug in SetDouble - Version: 2.11.1, 11/1/2007 06:58AM PST

MarkusWinter
Hi,

nice work on the plist class but I think I found a bug:

when I write

dim d as new date
EditField1.text = str(d.TotalSeconds)

I always get it in scientific notation as 3.276756e+9 because that’s how strings handle doubles

When I save d.Totalseconds with

prefs.root.SetDouble("TotalSeconds", TotalSeconds)

it becomes 3276756000.000000 which is wrong

However I noticed that the code in the plist class is

Sub SetDouble(key As string,v As double)
dim result As integer
dim value As string

result=CheckType(key,"real")
if result<>0 then
values.value(key)=str(v)
types.value(key)="real"
searched.Value(key)=false
end
End Sub

I think this line

values.value(key)=str(v)

is responsible and possibly a bug in plist. It should be replaced with

values.value(key)=Format(v, "############")

Best Regards

Markus


Post a commentAlert Admin

plist Class for REALbasic Troubleshooting ReportPossible bug in SetDouble - Version: 2.11.1, 11/1/2007 06:55AM PST

MarkusWinter
Hi,

nice work on the plist class but I think I found a bug:

when I write

dim d as new date
EditField1.text = str(d.TotalSeconds)

I always get it in scientific notation as 3.276756e+9 because that’s how strings handle doubles

When I save d.Totalseconds with

prefs.root.SetDouble("TotalSeconds", TotalSeconds)

it becomes 3276756000.000000 which is wrong

However I noticed that the code in the plist class is

Sub SetDouble(key As string,v As double)
dim result As integer
dim value As string

result=CheckType(key,"real")
if result<>0 then
values.value(key)=str(v)
types.value(key)="real"
searched.Value(key)=false
end
End Sub

I think this line

values.value(key)=str(v)

is responsible and possibly a bug in plist. It should be replaced with

values.value(key)=Format(v, "############")

Best Regards

Markus


Post a commentAlert Admin

plist Class for REALbasic ReviewHurray! - Version: 2.6, 10/3/2005 01:06PM PST

Pathos
After a 6 month break I started working on my Realbasic projects again after I found this brilliant piece of software! I can do preferences again.
Post a commentAlert Admin

plist Class for REALbasic ReviewAwesome! - Version: 2.5, 8/28/2005 06:15PM PST

(1 of 1 users found this comment useful)

N1MIE
This is great stuff. Well constructed, versatile, stable. Well worth the time to download.
Post a commentAlert Admin

plist Class for REALbasic ReviewGreat Stuff - Version: 2.0, 8/25/2005 11:22AM PST

(2 of 2 users found this comment useful)

smard
Thanx to the developer.
Post a commentAlert Admin