• 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: Two arrays sharing the same adress space.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two arrays sharing the same adress space.


  • Subject: Re: Two arrays sharing the same adress space.
  • From: "Kyle Sluder" <email@hidden>
  • Date: Mon, 17 Nov 2008 01:18:42 -0500

On Mon, Nov 17, 2008 at 1:03 AM, Stephen J. Butler
<email@hidden> wrote:
> 2) always use the value returned from an init* method.

This isn't strictly necessary.  If you need a singleton object that
lives for the duration of your app, for example, there's no reason you
can't just alloc/init one and let it go (unless, of course, you're
using garbage collection, in which case it might matter).  I can't
imagine a likely scenario for this outside of misapplication of an
idiom, but that doesn't make it illegal to ignore the return value of
-init.

--Kyle Sluder
_______________________________________________

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: Two arrays sharing the same adress space.
      • From: Andy Lee <email@hidden>
References: 
 >Re: Two arrays sharing the same adress space. (From: Scott Ribe <email@hidden>)
 >Re: Two arrays sharing the same adress space. (From: Sandro Noel <email@hidden>)
 >Re: Two arrays sharing the same adress space. (From: Charles Steinman <email@hidden>)
 >Re: Two arrays sharing the same adress space. (From: Sandro Noel <email@hidden>)
 >Re: Two arrays sharing the same adress space. (From: "Stephen J. Butler" <email@hidden>)

  • Prev by Date: Re: Two arrays sharing the same adress space.
  • Next by Date: NSTokenField fails to tokenize with mixed text
  • Previous by thread: Re: Two arrays sharing the same adress space.
  • Next by thread: Re: Two arrays sharing the same adress space.
  • Index(es):
    • Date
    • Thread