I am beginning to implement scripting support on the cocoa
application I am building with Xcode 2.5 on 10.4.
I have some properties working, but now I am horribly stuck for hours
on what should be so basic a feature--a custom enumeration in my sdef
file for a property.
<property name="shippingstatus" code="STAT" type="mystates"
description="The shipping status of an order.">
<cocoa key="shippingStatus"/>
</property>
When I run it, my run log shows this error:
.sdef warning for attribute 'shippingStatus' of class 'order' in
suite 'Scheduler Suite': 'mystates' is not a valid type name.
I notice that if I view the sdef as an applescript dictionary and
look at the shippingstatus property, instead of showing the
enumerated names, it just says
"shippingstatus (mystates) : The shipping status of an order."
Any ideas why I can't make this simple enumeration in my sdef?