Re: Getting attribute-level userInfo at run-time
Re: Getting attribute-level userInfo at run-time
- Subject: Re: Getting attribute-level userInfo at run-time
- From: Paul Hoadley <email@hidden>
- Date: Sun, 25 Oct 2009 11:39:41 +1030
I may as well finish off this conversation with myself for the archives.
On 22/10/2009, at 6:25 PM, Paul Hoadley wrote:
1. How can I nominate in the userInfo dictionary that the value for
a key is a boolean literal? Entity Modeler kept flipping back to
String, so I have added this to all the relevant attributes by hand:
userInfo = {comorbidity = true; };
Using Apple's Property List Editor utility, I can set the type for a
value. Setting that to Boolean saves out as "comorbidity = YES;". I
couldn't get Entity Modeler to do it, though presumably that's the
behaviour it's trying to emulate.
Is that sufficient, or is that just going to return the String value
"true"? (If so, fine. But if there's a way to express a boolean
literal, that would be nice.)
In Java, both of those get returned as java.lang.Strings. (Presumably
in Cocoa, "YES" gets returned as an Objective-C BOOL?)
--
Paul.
w http://logicsquad.net/
h http://paul.hoadley.name/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden