Re: Cocoa Scripting: property with multiple types
Re: Cocoa Scripting: property with multiple types
Subject : Re: Cocoa Scripting: property with multiple types
From: Dustin Voss <email@hidden >
Date: Sun, 21 Aug 2005 18:24:08 -0700
Delivered-to: email@hidden
Delivered-to: email@hidden
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=gEvSkLXlOD/nG4qGKI9vQtQCBCLolQ4UqOXOCEIogR3IHjBiRRf7CncE0lXzEfVO; h=Received:In-Reply-To:References:Mime-Version:Content-Type:Message-Id:Cc:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer:X-ELNK-Trace:X-Originating-IP;
On 19 Aug 2005, at 3:10 PM, Mark Alldritt wrote:
On a related note, if I want to return missing value for a property
that
normally returns an integer, boolean or string, how do I do this?
I still haven't heard whether this actually works, and I haven't
touched my own code in a long time, but maybe you can declare
<value-type name="missing value" code="msng">
<cocoa class="NSNull"/>
</value-type>
in your sdef file and return [NSNull null] from the accessors.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
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 © 2011 Apple Inc. All rights reserved.