Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa Automator Action with Empty Input?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.