• 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: retain and don`t retain in accessor methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: retain and don`t retain in accessor methods


  • Subject: Re: retain and don`t retain in accessor methods
  • From: Ariel Feinerman <email@hidden>
  • Date: Sun, 15 Nov 2009 09:35:28 +0200

2009/11/15 Kyle Sluder <email@hidden>

> On Sat, Nov 14, 2009 at 2:35 PM, Ariel Feinerman <email@hidden>
> wrote:
> > I need two versions of -initWith ... and -set ... methods of custom timer
> > class (for example, to prevent the circle references);
>
> Do not use accessors in your initializers or -dealloc.
>

Hm, it means to do the same work two times, I think. For example if I change
the mechanism in the setting of instance variables, I must to change one in
difference inits method; can you say a reason?

>
> --Kyle Sluder
>

--
best regards
Ariel
_______________________________________________

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

  • Follow-Ups:
    • Re: retain and don`t retain in accessor methods
      • From: Clark Cox <email@hidden>
References: 
 >Fwd: retain and don`t retain in accessor methods (From: Ariel Feinerman <email@hidden>)
 >Re: retain and don`t retain in accessor methods (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: CPU sampling and +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]
  • Next by Date: [iPhone] iPhone Screen with Add Photo and UITableView
  • Previous by thread: Re: retain and don`t retain in accessor methods
  • Next by thread: Re: retain and don`t retain in accessor methods
  • Index(es):
    • Date
    • Thread