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

EOSortOrdering error


  • Subject: EOSortOrdering error
  • From: Randall Perry <email@hidden>
  • Date: Wed, 30 Jun 2004 13:54:39 -0400

The code below shows my attempt to sort an NSArray of EOs after a fetch. But
I'm getting the following error:

DirectAction.java:97:
sortedArrayUsingKeyOrderArray(com.webobjects.foundation.NSArray,com.webobjec
ts.foundation.NSArray) in com.webobjects.eocontrol.EOSortOrdering cannot be
applied to
(com.webobjects.foundation.NSArray,com.webobjects.eocontrol.EOSortOrdering)

Can anyone see an error in my coding?



// array to hold fetch
NSArray logInfo;

// create sort order to sort array in memory
EOSortOrdering byDateDesc = EOSortOrdering.sortOrderingWithKey("dateTime",
EOSortOrdering.CompareDescending);
// create mutable array to hold results of sort
NSMutableArray logInfoSorted = new NSMutableArray();

// fetch data
logInfo = ec.objectsWithFetchSpecification(logFetchSpec);
// if there is data, sort it
if(logInfo.count() != 0) {
    logInfoSorted =  EOSortOrdering.sortedArrayUsingKeyOrderArray(logInfo,
byDateDesc);
}




--
Randall Perry
sysTame

Xserve Web Hosting/Co-location
Website Design/Development
WebObjects Hosting
Mac Consulting/Sales

http://www.systame.com/
_______________________________________________
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: EOSortOrdering error
      • From: Randall Perry <email@hidden>
  • Prev by Date: Bugreporter Bug?
  • Next by Date: Re: EOSortOrdering error
  • Previous by thread: Bugreporter Bug?
  • Next by thread: Re: EOSortOrdering error
  • Index(es):
    • Date
    • Thread