• 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
RE: Re: Sorting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Re: Sorting


  • Subject: RE: Re: Sorting
  • From: "Peter Karlsson" <email@hidden>
  • Date: Wed, 16 Feb 2005 13:31:44 +0100

Hi!

To read and write the array is not a problem. The problem is how to sort
it. Do you maybe have some example code to show me?

Peter

Ursprungligt meddelande

> Hi Peter,
>
> I'm not sure how other people would recommend you do this, but my idea
> would be to sort the array in your app (like you have) and then
> overwrite the array's value in the plist file using the setObject:
> forKey: method (using the same key, of course).
>
> In other words:
> 1) Read the array from the plist file.
> 2) Sort the array.
> 3) Write the array to the plist file using the same key you used to
> access it.
>
> I think that'd be the only way you could do it.
>
> Kiel  :-)
> "Your friend is the person who knows all about you and still likes you."
> Elbert Green Hubbard
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Sorting
      • From: August Trometer <email@hidden>
  • Prev by Date: Re: Sorting
  • Next by Date: How to get image of a WebView???
  • Previous by thread: Re: Sorting
  • Next by thread: Re: Sorting
  • Index(es):
    • Date
    • Thread