• 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: encoding vended objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: encoding vended objects


  • Subject: Re: encoding vended objects
  • From: "James Trankelson" <email@hidden>
  • Date: Wed, 29 Aug 2007 10:36:00 -0400

Thanks!

I also tried sending a an NSArray of NSString objects, which failed as
well. Does anyone know why this might happen?

brian

On 8/29/07, Jacob Engstrand <email@hidden> wrote:
>
> On 29 aug 2007, at 11.38, Jacob Engstrand wrote:
>
> > - (id)initWithCoder:(NSCoder *)decoder
> > {
> >   self = [super initWithCoder: decoder];
> >
> >   if (nil != self) {
> >     distance = [decoder decodeObject];
> >     duration = [decoder decodeObject];
> >     dateFor = [decoder decodeObject];
> >   }
> >
> >   return self;
> > }
>
>
>
> Oh yes, I forgot, those decoded objects need to be retained.
>
>
> - (id)initWithCoder:(NSCoder *)decoder
> {
>    self = [super initWithCoder: decoder];
>
>    if (nil != self) {
>      distance = [[decoder decodeObject] retain];
>      duration = [[decoder decodeObject] retain];
>      dateFor = [[decoder decodeObject] retain];
>    }
>
>    return self;
> }
>
> jak
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please 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
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: 
 >encoding vended objects (From: "Brian Chin" <email@hidden>)
 >Re: encoding vended objects (From: Jacob Engstrand <email@hidden>)
 >Re: encoding vended objects (From: Jacob Engstrand <email@hidden>)

  • Prev by Date: trying to get the NSOpenGLContext of my second screen
  • Next by Date: Validating NSXMLDocument with DTD that has ANY condition
  • Previous by thread: Re: encoding vended objects
  • Next by thread: Hillegas printing Stuck again!!
  • Index(es):
    • Date
    • Thread