NSRangeSpecifier error with startSpecifier's container
NSRangeSpecifier error with startSpecifier's container
- Subject: NSRangeSpecifier error with startSpecifier's container
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 03 Sep 2005 10:24:38 -0400
In my subclass of NSScriptCommand, my override of
-performDefaultImplementation returns what appears to be a valid range
specifier. However, in Script Editor's result window it shows up as a range
specifier ('companies from ...') instead of the desired list of objects. And
when I try to use it in a script to get the name property of each object,
like this:
get name of (MyCommand)
I don't get a list result as expected, such as {"name 1", "name 2"}.
Instead I get this odd error message: "A range specifier's startSpecifier
cannot have a container specifier currently."
If I set the startSpecifier's container specifier to nil, I get an incorrect
reference, namely, to object "of application" when in fact it is nested more
deeply (it should be object "of document").
What is this about? What's with "currently"?
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden