[Mono-bugs] [Bug 533013] New: NSUserDefaults Indexer only accepts NSObject types
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Aug 20 14:10:39 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=533013
Summary: NSUserDefaults Indexer only accepts NSObject types
Classification: Mono
Product: MonoTouch
Version: unspecified
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Class Libraries
AssignedTo: gnorton at novell.com
ReportedBy: jondick at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.6 Safari/532.0
The NSUserDefaults Indexer only accepts NSObject type values. Take for
example:
NSUserDefaults.StandardUserDefaults["key"] = "value";
This code will not compile since a string cannot be automatically cast to an
NSObject.
The same will happen for all other primitives possibly saved in the
NSUserDefaults (int, bool, double, float, string, string[]). NSUserDefaults'
indexer should have overloads for these other primitive types.
Reproducible: Always
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list