• 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
Problem in coding integers/floats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem in coding integers/floats


  • Subject: Problem in coding integers/floats
  • From: Cédric John <email@hidden>
  • Date: Thu, 19 Dec 2002 09:32:44 +0100

Ok, this might be a bit basic for you seasoned veterans out there, but I do get trouble in archiving floats and integers. Basically, I don't know how to properly use the "- encodeValuesOfObjCTypes:" methods. I've tried to use some permutations of [coder encodeValuesOfObjCTypes:@encode(int) anInt]; but without success. I could not find a good documentation of the "@encode()" compiler directive. Alternatively, I've archived a NSNumber, but I was really disappointed because for some reasons it didn't record my float/int correctly. So if someone could provide two lines of code, one for coding and one for decoding an integer using "encodeValuesOfObjCTypes:", I would be really grateful!

Cheereo

Cidric




Cidric John
---------------------------------

It is almost hopeless to try to get your email account from CROG.org,
but you can visit us online at http://www.crog.org !
_______________________________________________
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.

  • Follow-Ups:
    • Re: Problem in coding integers/floats
      • From: Roarke Lynch <email@hidden>
  • Prev by Date: RE: "First Run" installation of Application support stuff?
  • Next by Date: /usr/share/zoneinfo file formats
  • Previous by thread: Re: NSUserDefauts - Am I Missing the Obvious?
  • Next by thread: Re: Problem in coding integers/floats
  • Index(es):
    • Date
    • Thread