• 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: Releasing by reference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Releasing by reference


  • Subject: Re: Releasing by reference
  • From: Shawn Erickson <email@hidden>
  • Date: Wed, 01 Aug 2007 06:46:43 -0700


On Aug 1, 2007, at 5:02 AM, email@hidden wrote:

Hello!
I'm initializing an object in class A, passing it to class B where it is
held in a static variable. I then release the object by referencing the
variable. Does this also release the original object, or do I have to
release it in class A?

In objective-c objects only exist on the heap and you get access to objects by maintaining pointers to them ... so with that in mind what do you think will take place?


-Shawn
_______________________________________________

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: 
 >Releasing by reference (From: email@hidden)

  • Prev by Date: Re: appendBytes memcpy
  • Next by Date: Re: Releasing by reference
  • Previous by thread: Re: Releasing by reference
  • Next by thread: Re: Releasing by reference
  • Index(es):
    • Date
    • Thread