Re: How to get container when overriding NSCreateCommand
Re: How to get container when overriding NSCreateCommand
- Subject: Re: How to get container when overriding NSCreateCommand
- From: "Jim O'Connor" <email@hidden>
- Date: Thu, 1 Sep 2005 14:13:01 -0500
If I were to guess (which I am, in fact, about to do), I would
guess that, since the make command doesn't appear to have a direct
parameter, the container will be in the 'subj' attribute of the
Apple Event.
If I am correct, this method for NSScriptCommand should retrieve &
evaluate it.
- (id) subjectsSpecifier
{
NSAppleEventDescriptor *subjDesc = [[self appleEvent]
attributeDescriptorForKeyword: 'subj'];
NSScriptObjectSpecifier *subjSpec = [NSScriptObjectSpecifier
_objectSpecifierFromDescriptor: subjDesc
inCommandConstructionContext: nil];
return [subjSpec objectsByEvaluatingSpecifier];
}
Did anybody ever figure out an Apple "blessed" way to do this?
Jim O'Connor
_______________________________________________
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