• 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: NSString coding errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString coding errors


  • Subject: Re: NSString coding errors
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Mon, 15 Jan 2007 19:05:01 -0800


On Jan 15, 2007, at 14:53, Adam Radestock wrote:

Hi everyone,

I've just added an NSString object to one of my custom objects, which conforms to the NSCoding Protocol, but am getting errors whenever I try and encode the NSString object.
Below are my .h and .m files for the custom class, can anyone point out the error in my code? I can't see the wood for the trees...

You're using autoreleased objects as (some) ivars, and they're invalid when you're trying to encode them, which will probably cause an exception or crash. I'd suggest reading up on Cocoa memory management rules again, and figure out why your -init and setPatchTypeString: methods (at least) are incorrect.


regards,
Adam

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSString coding errors (From: Adam Radestock <email@hidden>)

  • Prev by Date: Re: setKeys + array operators = slowdown
  • Next by Date: Re: remote proxy object somehow not correct
  • Previous by thread: Re: NSString coding errors
  • Next by thread: Re: NSString coding errors
  • Index(es):
    • Date
    • Thread