• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSConcreteValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSConcreteValue (From: Chris Garaffa <email@hidden>)

  • Prev by Date: Re: NSCalendarDate bug?
  • Next by Date: Re: NSCalendarDate bug?
  • Previous by thread: NSConcreteValue
  • Next by thread: Re: NSConcreteValue
  • Index(es):
    • Date
    • Thread