• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WOLips Binding Validation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOLips Binding Validation


  • Subject: WOLips Binding Validation
  • From: Ricardo Parada <email@hidden>
  • Date: Wed, 12 Dec 2007 16:31:04 -0700



Hello WOLips Experts:

I love the validation in WOLips.  It catches a lot of stuff that went undetected in WebObjects Builder.  However, I'm still not sure I understand fully the validation options.  In particular the following:

[√ ] ... Warn if Missing Key on NSDictionary/NSArray

If an NSDictionary is supposed to hold any key in there,  how can WOLips do validation if it doesn't know what keys are inside the dictionary until at run-time?  Or am I interpreting this wrong?  :-) 


Also, I got an error similar to the one below: 

There is no key 'folderID' for the keypath 'folder' in MyComponent.

In MyComponent the folder i-var is of type NSKeyValueCodingAdditions.  At run-time the underlying object is either a instance of Folder which has a folderID() method or an instance of NSDictionary containing a "folderID" key.    So the common denominator is that they both implement the NSKeyValueCodingAdditions interface.  And I can simply invoke valueForKeyPath() from my component to get values from those objects.

But the error is telling me that there is no folderID in it.   So which validation option is supposed to get rid of this error?  Basically, I don't want the validation to try to determine whether or not a key is valid when the target object to which the key is being applied is of type NSKeyValueCodingAdditions.  :-)

Thanks for any help.

By the way, like many others I'm sure, I'm loving it using Eclipse / WOLips.  And I'm trying to do some convincing to switch our custom ant-based build system to use Eclipse / WOLips as a first class citizen.


 _______________________________________________
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

  • Follow-Ups:
    • Re: WOLips Binding Validation
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: wolips / webobjects build question
  • Next by Date: Re: WOLips Binding Validation
  • Previous by thread: [WOCommunity] WO Marketplace Survey: last reminder
  • Next by thread: Re: WOLips Binding Validation
  • Index(es):
    • Date
    • Thread