2007/10/24, Miguel Arroz <[EMAIL PROTECTED]>:
>
> Hi!
>
> Sometimes I really think I should change business!
>
> I have this binding:
>
> ShowDowndloadsConditional: WOConditional {
> condition = downloads.isEmpty;
> negate = true;
> }
>
> "downloads" is an NSArray.
>
> When running, I get this:
>
> Reason:
> <my.top.secret.package.name.ExportDownloadItem 0xb95569> valueForKey
> (): lookup of unknown key: 'isEmpty'. This class does not have an
> instance variable of the name isEmpty or _isEmpty, nor a method of
> the name isEmpty, _isEmpty, getIsEmpty, or _getIsEmpty
>
> The ExportDownloadItem is an object in the array.
well, I have an idea of why this doesn't work: whitch version of WO do you
have? because before 5.3 isEmpty doesn't work.
Whatever, I think is always a good idea to use count: if the array is null
WO understand false, if count is 0 wo understand false, other values are
true.
My question is... why!?!?!? :)
If I do this the dull way (write a method that returns
> downloads.isEmpty() ) and bind to it, this works.
>
> Yours
>
> Miguel Arroz
>
> Miguel Arroz
> http://www.terminalapp.net
> http://www.ipragma.com
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>
>
--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]
--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS
--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]