• 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
Sorting a two-dimensional NSMutableArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sorting a two-dimensional NSMutableArray


  • Subject: Sorting a two-dimensional NSMutableArray
  • From: "Ben O'Neill" <email@hidden>
  • Date: Mon, 10 Jun 2002 16:27:42 +1000

To All,
How do I sort a two dimensional array in line, I have been trying with;
records = [records sortedArrayUsingSelector:@selector(compare:)];

where records (the Array is defined as )
records = [[NSMutableArray alloc] initWithContentsOfFile:recordsFile];

but it compiles it returns a warning:
assignment from incompatible pointer type

and when it runs and the above line is run it returns an error:
2002-06-10 16:25:57.624 DVDManager[1272] *** -[NSCFDictionary caseInsensitiveCompare:]: selector not recognized

What am I missing?
Thanks in advance
Ben O'Neill
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Sorting a two-dimensional NSMutableArray
      • From: Marco Scheurer <email@hidden>
  • Prev by Date: Re: DoubleClick in a NSTableView
  • Next by Date: Re: Network interface active?
  • Previous by thread: Re: Current process
  • Next by thread: Re: Sorting a two-dimensional NSMutableArray
  • Index(es):
    • Date
    • Thread