• 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
overriding NSGetCommand
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

overriding NSGetCommand


  • Subject: overriding NSGetCommand
  • From: Ken Victor <email@hidden>
  • Date: Mon, 20 Mar 2006 09:55:13 -0800

what is the proper way to override NSGetCommand? i've read the new ScriptableCocoaApplications.pdf and according to this, i don't need to supply a get command in my sdef, and i simply need to provide a class that is a subclass of NSGetCommand. this didn't work for me.

either i've misunderstood the documentation, or i misapplied what i thought was appropriate.

i'd like to be able to intercept script gets in order to be able to record them.

at this time, it looks like the most promising approach might be to provide a subclass of NSScriptCommand and to pose my subclass as an NSScriptCommand and then in my override of execute command, call [super executeCommand] and then check to see if this is a get command. this seems a little "clunky" and i'm not sure it will work, so i thought i'd ask here before pursuing.

can anyone provide any guidance?

thanx,
ken
_______________________________________________
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: Fwd: closing panel from a thread
  • Next by Date: (no subject)
  • Previous by thread: Re: Getting crash reports
  • Next by thread: trackingRect can't be removed?
  • Index(es):
    • Date
    • Thread