Re: NSConcreteValue
Re: NSConcreteValue
- Subject: Re: NSConcreteValue
- From: Greg Titus <email@hidden>
- Date: Thu, 2 Oct 2003 10:57:29 -0700
On Thursday, October 2, 2003, at 10:29 AM, Chris Garaffa wrote:
While playing with NSAppleScript's executeAndReturnError:, I decided
to investigate exactly what's in the dictionary it returns. The first
three keys, (in case anyone's wondering) are:
NSAppleScriptErrorNumber, NSAppleScriptErrorBriefMessage and
NSAppleScriptErrorMessage (the first is an NSCFNumber and the next two
are NSCFStrings). The fourth is NSAppleScriptErrorRange, which is of
type NSConcreteValue. I can't find any documentation for this
anywhere, and trying to NSLog it doesn't work, only reporting (twice)
that -[NSConcreteValue length] is not recognized.
So, what's an NSConcreteValue? For the purpose of using it to get
information from an NSAppleScript's error dictionary, is it important
information to have?
It is a private subclass of NSValue, and you want to use the
-rangeValue method on it. This will return an NSRange containing the
range in the AppleScript source text where the error occurred.
Hope this helps,
- Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.