• 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: Problem Archiving/Un-archiving Custom Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem Archiving/Un-archiving Custom Objects


  • Subject: Re: Problem Archiving/Un-archiving Custom Objects
  • From: Graham Cox <email@hidden>
  • Date: Fri, 22 Jan 2016 10:47:35 +1100

> On 22 Jan 2016, at 10:04 AM, Quincey Morris <email@hidden> wrote:
>
> In general, like in inits, you will want to assign directly to instance variables rather than use property setters


Same applies to -initWithCoder: If you call a lot of property setters there, performance is slow. It might not matter, but for big graphs (10,000+ objects) it can be a killer. If any setters have side effects it can be suicidal.


—Graham
_______________________________________________

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: 
 >How to save a Dictionary Network to a plist file? (From: Dave <email@hidden>)
 >Re: How to save a Dictionary Network to a plist file? (From: Jens Alfke <email@hidden>)
 >Problem Archiving/Un-archiving Custom Objects (From: Dave <email@hidden>)
 >Re: Problem Archiving/Un-archiving Custom Objects (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Problem Archiving/Un-archiving Custom Objects
  • Next by Date: Re: How to save a Dictionary Network to a plist file?
  • Previous by thread: Re: Problem Archiving/Un-archiving Custom Objects
  • Next by thread: Re: How to save a Dictionary Network to a plist file?
  • Index(es):
    • Date
    • Thread