• 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
Cocoa Automator Action with Empty Input?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa Automator Action with Empty Input?


  • Subject: Cocoa Automator Action with Empty Input?
  • From: Sanford Selznick <email@hidden>
  • Date: Tue, 20 Mar 2007 23:42:37 -0700

Hello,

I'm writing a Cocoa Automator Action. The input argument to runWithInput: appears to be an invalid class of some sort. When I print [input className] to the console I get the following message:

Automator[7524] Exception raised during posting of notification. Ignored. exception: [<AMAppleScriptAction 0x13de7d0> removeObserver:<AMDocument 0x13c1b000> forKeyPath:@"parameters.temporary items path"] was sent to an object that has no observers.

When I po [input className] in gdb, I get NSCFString. If I replace my Automator action in my workflow with another action that has text input and output (like mine), it works fine.

  Why is input a "dud" object?

Thanks,
  Sanford

PS -

== Input type in plist:

<key>AMAccepts</key>
<dict>
  <key>Container</key>
  <string>Single</string>
  <key>Optional</key>
  <false/>
  <key>Types</key>
  <array>
    <string>com.apple.cocoa.string</string>
  </array>
</dict>

== Output type in plist:

<key>AMProvides</key>
<dict>
  <key>Container</key>
  <string>Single</string>
  <key>Types</key>
  <array>
    <string>com.apple.cocoa.string</string>
  </array>
</dict>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: NSData dataWithBytes problem on Intel
  • Next by Date: Re: Embedding a WebView in a Table
  • Previous by thread: Re: NSBezierPath Arc bug, intel.
  • Next by thread: How to add my cocoa app at system preferences others categary
  • Index(es):
    • Date
    • Thread