Returns by reference a date representation of a given string and the range of the string used, and returns a Boolean value that indicates whether the string could be parsed.
Original signature is '- (BOOL)getObjectValue:(out id *)obj forString:(NSString *)string range:(inout NSRange *)rangep error:(out NSError **)error'
Available in Mac OS X v10.4 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual bool GetObjectValueForStringRangeError( out Id obj, NSString string, ref NSRange rangep, out NSError error )
Public Overridable Function GetObjectValueForStringRangeError ( _ <OutAttribute> ByRef obj As Id, _ string As NSString, _ ByRef rangep As NSRange, _ <OutAttribute> ByRef error As NSError _ ) As Boolean
public: virtual bool GetObjectValueForStringRangeError( [OutAttribute] Id^% obj, NSString^ string, NSRange% rangep, [OutAttribute] NSError^% error )
Parameters
- obj (Id%)
- If the receiver is able to parse string, upon return contains a date representation of string.
- string (NSString)
- The string to parse.
- rangep (NSRange%)
- If the receiver is able to parse string, upon return contains the range of string used to create the date.
- error (NSError%)
- If the receiver is unable to create a date by parsing string, upon return contains an NSError object that describes the problem.
Return Value
YES if the receiver can create a date by parsing string, otherwise NO.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)