• 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: How to get container when overriding NSCreateCommand
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: RE: Out of bounds exception from NSTextView
  • Next by Date: Re: NSTableView Scrollbars are very quirky on 10.3!
  • Previous by thread: Re: Out of bounds exception from NSTextView
  • Next by thread: Re: NSTableView Scrollbars are very quirky on 10.3!
  • Index(es):
    • Date
    • Thread