• 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/Release and Properties clarification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retain/Release and Properties clarification


  • Subject: Re: Retain/Release and Properties clarification
  • From: Eeyore <email@hidden>
  • Date: Mon, 03 Oct 2011 07:51:24 -0700

Not enough morning coffee for you,

On Oct 3, 2011, at 7:29 AM, Steve Sisak wrote:

> You do, indeed want:
>
> self.audioPlayer = [self getSoundFile:"soundfile.wav"];
>
> or
>
> [self setAudioPlayer = [self getSoundFile:"soundfile.wav"]];

I think you meant [self setAudioPlayer:[self getSoundFile:"soundfile.wave"]];

I second Steve's suggestion of giving ivars a different name than properties, especially when just learning the language. Even after you know the language, the distinction will help newbies when they need to work with the code you've written.

Aaron_______________________________________________

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: 
 >Retain/Release and Properties clarification (From: John Tsombakos <email@hidden>)
 >Re: Retain/Release and Properties clarification (From: Steve Sisak <email@hidden>)

  • Prev by Date: Re: Retain/Release and Properties clarification
  • Next by Date: Re: Retain/Release and Properties clarification
  • Previous by thread: Re: Retain/Release and Properties clarification
  • Next by thread: Re: Retain/Release and Properties clarification
  • Index(es):
    • Date
    • Thread