• 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
GC Basic questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GC Basic questions


  • Subject: GC Basic questions
  • From: Nick Rogers <email@hidden>
  • Date: Tue, 20 Oct 2009 12:05:26 +0530

Hi,
Since the methods -release, -retain and -autorelease are no-ops with GC only enabled, How do I release everything associated with an ivar (pointer to a class) in AppController?
Currently I'm doing it by setting this pointer as nil. Is it ok?


Also when I follow certain steps, this pointer gets a lot of memory attached, down the line. which gets released (when I set it to nil) as per Obj-Alloc instrument.
But when following another certain steps, this memory doesn't get released (when setting this pointer nil), why? With GC only enabled this should get freed up.


Thanks,
Nick

_______________________________________________

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: GC Basic questions
      • From: Quincey Morris <email@hidden>
    • Re: GC Basic questions
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: CPU utilization in Snow Leopard
  • Next by Date: Re: CPU utilization in Snow Leopard
  • Previous by thread: Re: CPU utilization in Snow Leopard
  • Next by thread: Re: GC Basic questions
  • Index(es):
    • Date
    • Thread