• 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: new class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new class


  • Subject: Re: new class
  • From: "Alan Smith" <email@hidden>
  • Date: Fri, 21 Sep 2007 07:53:59 -0400

Hi,

You retain an object when you want to have reference to it later. For
example, to set an ivar you do something like this:

- (void)setString:(NSString*)string
{
  [_string release];
  _string = [string retain];
}

Hope this helps and isn't confusing.

Peace, Alan

--
My blog: cocoalatte.info

// Things I've said -------------------------
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"When the World realizes that personal beliefs are not something to
argue or fight over, it shall evolve."
_______________________________________________

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: new class
      • From: Shawn Erickson <email@hidden>
References: 
 >new class (From: H M <email@hidden>)
 >Re: new class (From: PGM <email@hidden>)
 >Re: new class (From: "Shawn Erickson" <email@hidden>)
 >Re: new class (From: H M <email@hidden>)

  • Prev by Date: Re: Where's the CFBundleShortVersionString?
  • Next by Date: Re: Calling processPendingChanges from awakeFromInsert
  • Previous by thread: Re: new class
  • Next by thread: Re: new class
  • Index(es):
    • Date
    • Thread