Re: Type casting in WOComponents
Re: Type casting in WOComponents
- Subject: Re: Type casting in WOComponents
- From: David LeBer <email@hidden>
- Date: Fri, 8 Jun 2007 07:50:25 -0400
On 8-Jun-07, at 6:15 AM, Mike Schrag wrote:
I always feel double dirty using that one, but maybe it's just me :)
I just clean all targets afterwards.
On Jun 8, 2007, at 2:53 AM, Anjo Krank wrote:
Am 08.06.2007 um 06:19 schrieb Mike Schrag:
Right, so this is true -- If assignedRegion is a property of
Admin only, then you can't bind to that key on User or WOLips
will yell. What is going on here is that the contract you have
in your component says that it's a User, so in the general case,
you can't bind assignedRegion. If, however, you KNOW under
certain circumstances that you have an Admin rather than a User,
the easiest path to this would be to add a method to your component:
or use Wonder's ERXInstanceOfConditional...
Cheers, Anjo
--
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
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