• 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
Question about method names in NSKeyedArchiver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about method names in NSKeyedArchiver


  • Subject: Question about method names in NSKeyedArchiver
  • From: Rob Ross <email@hidden>
  • Date: Fri, 14 Jul 2006 22:12:25 -0700


NSKeyedArchiver has this class method:

+ (NSData *)archivedDataWithRootObject:

and NSKeyedUnarchiver has this class method:

+ (id)unarchiveObjectWithData:

Why is the first method name in the past tense (achive_d_DataWithRootObject), while the second method name is in the present tense? That is, why isn't the first one just named:

+ (NSData *)archiveDataWithRootObject:

since you're sending a message to class NSKeyedArchiver to "archive" some data, just as here:

+ (id)unarchiveObjectWithData:

you're telling class NSKeyedUnarchiver to "unarchive" some data.


I'm confused by the inconsistency.


Rob Ross, Lead Software Engineer
E! Networks
---------------------------------------------------
"Beware of he who would deny you access to information, for in his heart he dreams himself your master." -- Commissioner Pravin Lal




_______________________________________________
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: Question about method names in NSKeyedArchiver
      • From: Michael Watson <email@hidden>
  • Prev by Date: Re: Screensaver password override possible?
  • Next by Date: Re: Question about method names in NSKeyedArchiver
  • Previous by thread: How to disable the system beep when running NSSavePanel
  • Next by thread: Re: Question about method names in NSKeyedArchiver
  • Index(es):
    • Date
    • Thread