• 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: NSArray to string and back problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArray to string and back problems


  • Subject: Re: NSArray to string and back problems
  • From: Shawn Erickson <email@hidden>
  • Date: Wed, 23 Nov 2005 22:28:20 -0800


On Nov 23, 2005, at 10:03 PM, Colin Cornaby wrote:

I'm trying to convert an NSArray to a string and read it back at a later point. I call [myMutableArray description], store it away, and then later try to recreate the array using [arrayString propertyList].

However, upon trying to return an NSArray from the string I get:

2005-11-23 21:37:08.801 Catalyst[17518] XML parser error:
	Unexpected character ( at line 1
Old-style plist parser error:
	Expected terminating ')' for array at line 5

Here is the description string:

2005-11-23 21:38:37.992 Catalyst[17542] (
    {
        CIFilterName = CIHueAdjust;
        inputAngle = 1.475182809936707;
        inputImage = {CIImage [0 0 22 26]};
    }
)

Is this a bug? I searched CocoaBuilder and found a message detailing the exact same problem in 2001, but no one ever replied to it.

Description is not meant as a way to serialize (aka archive) an array.

Review NSCoding which NSArray implements...
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Protocols/NSCoding.html>


Then review...
<http://developer.apple.com/documentation/Cocoa/Conceptual/Archiving/ index.html#//apple_ref/doc/uid/10000047i>


Also consider...
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSPropertyListSerialztion_index.html>


-Shawn
_______________________________________________
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: NSArray to string and back problems
      • From: Colin Cornaby <email@hidden>
References: 
 >NSArray to string and back problems (From: Colin Cornaby <email@hidden>)

  • Prev by Date: NSArray to string and back problems
  • Next by Date: Newbie needs help with tableview and bindings
  • Previous by thread: NSArray to string and back problems
  • Next by thread: Re: NSArray to string and back problems
  • Index(es):
    • Date
    • Thread