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: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs