I am pretty sure that all of the EO* classes use those archivers.  Or should.  
:-)  You could write some code to listen for the ModelAdded notification, 
unarchive them from some other file and augment your model then.



From: OC <[email protected]>
Date: Monday, July 11, 2016 at 4:08 AM
To: Chuck Hill <[email protected]>
Cc: WebObjects-Dev Mailing List <[email protected]>
Subject: Re: fspec qualifier documentation?

Aha, thanks, I see.

Hmmm, might perhaps be somewhere documented the way all the different 
qualifiers archive themselves, or am I SOL with that? Alas I can't simply 
(un)archive them, for the code which edits those fspecs is pure today's ObjC 
Cocoa (it is my standalone EOModeller application): no qualifiers in there and 
no Java bridge either.

Thanks,
OC

On 11. 7. 2016, at 6:53, Chuck Hill 
<[email protected]<mailto:[email protected]>> wrote:

Pretty sure what you looking for is EOKeyValueUnarchiver and EOKeyValueArchiver

From: 
<[email protected]<mailto:[email protected]>>
 on behalf of OC <[email protected]<mailto:[email protected]>>
Date: Sunday, July 10, 2016 at 5:52 PM
To: WebObjects-Dev Mailing List 
<[email protected]<mailto:[email protected]>>
Subject: fspec qualifier documentation?

Hi there,

is there somewhere a documentation of the structure which defines “qualifier“ 
in a fspec inside of a model?

The WO_BundleReference.pdf of 2008-11-19 (which is the newest one I could find) 
says “A formatted string for an EOQualifier object that indicates which records 
or objects the fetch specification should fetch. See EOQualifier in WebObjects 
5.4 Reference for the format of this string.”

That's a blatant lie. If I try to put a string in there, at runtime, the 
outcome is

1506 [main] WARN NSLog  - A fatal exception occurred: java.lang.String cannot 
be cast to com.webobjects.eocontrol.EOQualifier

It looks like there should be a sort of dictionary, like e.g.,

===
     qualifier =     {
         class = EOKeyValueQualifier;
         key = nnn;
         selectorName = "isEqualTo:";
         value =         {
             class = NSNumber;
             value = 1000001;
         };
     };
===

-- this one actually happens to work -- but I would like to see a complete 
documentation, if there is one?

Thanks a lot,
OC


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      
([email protected]<mailto:[email protected]>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com

This email sent to [email protected]<mailto:[email protected]>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to