Mailing Lists: Apple Mailing Lists

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

Re: cocoa handling null values



What is the best way to translate null values back and forth between
cocoa and applescript? In particular I want to enable my users to set
a property to a cocoa NULL from applescript. I see applescripts
"null" and "missing value" but none of those seem to turn into a NULL
on the cocoa side. Can anyone tell me what the best or expected way
to do this is?

'missing value' is an NSNull singleton, isn't it?

For me 'missing value' comes in on the Cocoa side as the String "msng" for a string property. Is that what other people see, or did I mess something up?


Or if I pass 'missing value' in as a command parameter it comes in as <NSAppleEventDescriptor: 'msng'


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.