• 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: id type in NSCoder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: id type in NSCoder


  • Subject: Re: id type in NSCoder
  • From: Ian McGregor <email@hidden>
  • Date: Wed, 17 Dec 2003 23:37:33 -0800

Hi Scott,

I have been bashing at this for a few hours now... and, as usual I
think you are right. This SHOULD be working. I just proved it to myself
by placing some NSLog's in there:

NSLog(@"decode: fieldValue class is %@",[fieldValue class]);

and

NSLog(@"encode: fieldValue class is %@",[fieldValue class]);

and they are both displaying the correct classes, with the exception of
a few (null)'s... I wonder if these (nulls) might might be the issue!



For example, I set fieldValue as an NSNumber and got
On 17-Dec-03, at 11:07 PM, Scott Anguish wrote:

> how do you mean it isn't working?
>
> id just tells the compiler that you're not sure what you'll be
> using... when the object is encoded, it should just handle it.
_______________________________________________
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.

References: 
 >id type in NSCoder (From: Ian McGregor <email@hidden>)

  • Prev by Date: Re: Capturing stdout
  • Next by Date: Re: why do this not work??
  • Previous by thread: id type in NSCoder
  • Next by thread: Re: id type in NSCoder
  • Index(es):
    • Date
    • Thread