• 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
in memory EOSortOrdering
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: in memory EOSortOrdering
      • From: Kaj Hejer <email@hidden>
  • Prev by Date: Re: WebObjects Builder ... again
  • Next by Date: Re: in memory EOSortOrdering
  • Previous by thread: Re: JavaWOSecurityExample Documentation
  • Next by thread: Re: in memory EOSortOrdering
  • Index(es):
    • Date
    • Thread