in memory EOSortOrdering
in memory EOSortOrdering
- Subject: in memory EOSortOrdering
- From: Erwin <email@hidden>
- Date: Sat, 10 Jul 2004 19:26:24 +0200
I am trying to test the in memory sort functionalities fin the 'Forum'
example (Ravi Mendis excellent book) but I get a compiling error when I
write his own code ... (I am using WO 5.2.3 - OSX 10.3.4)
I have also to specify the ( EOEnterpriseObject) return type ,
otherwise I get an error....
Is it due to any change in WO 5.2.3 ????
/** @TypeInfo Post */
public EOEnterpriseObject lastpost() {
NSMutableArray posts = (NSMutableArray) topic.valueForKey("posts");
EOSortOrdering ordering =
EOSortOrdering.sortOrderingWithKey("timestamp",
EOSortOrdering.CompareAscending);
EOSortOrdering.sortArrayUsingKeyOrderArray(posts, ordering);
return (EOEnterpriseObject) posts.lastObject();
}
sortArrayUsingKeyOrderArray(com.webobjects.foundation.NSMutableArray,com
.webobjects.foundation.NSArray) in
com.webobjects.eocontrol.EOSortOrdering cannot be applied to
(com.webobjects.foundation.NSMutableArray,com.webobjects.eocontrol.EOSor
tOrdering)
EOSortOrdering.sortArrayUsingKeyOrderArray(posts, ordering);
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.