• 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: Main window disappears. Sometimes.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Main window disappears. Sometimes.


  • Subject: Re: Main window disappears. Sometimes.
  • From: Michael Vannorsdel <email@hidden>
  • Date: Mon, 2 Jun 2008 03:19:57 -0600

Retain and release have no effect on ObjC types when using garbage collection. If your code is written relying on retain counting then you should turn off garbage collection since you're trying to manage the memory yourself (and probably designed the code as such). Garbage collection has specific requirements on how you treat objects to help the collector know what to deallocate and what to keep around.

If you really want to stick with GC, read the docs on it to understand how it works and how it determines what and when to deallocate.


On Jun 2, 2008, at 3:05 AM, Francis Perea wrote:

Hi Michael.

I've also supposed it was happening that, and I've tried to correct it by using retain in each one of init methods of both classes, but no results.

What I mean is, in every init method, when I call the [super init] I've tried [[super init] retain]. But no way.

Any other suggestion?

Thanks for your reply.

_______________________________________________

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: 
 >Main window disappears. Sometimes. (From: Francis Perea <email@hidden>)
 >Re: Main window disappears. Sometimes. (From: Wayne Packard <email@hidden>)
 >Re: Main window disappears. Sometimes. (From: Francis Perea <email@hidden>)
 >Re: Main window disappears. Sometimes. (From: Michael Vannorsdel <email@hidden>)
 >Re: Main window disappears. Sometimes. (From: Francis Perea <email@hidden>)

  • Prev by Date: Re: Main window disappears. Sometimes.
  • Next by Date: Re: Main window disappears. Sometimes.
  • Previous by thread: Re: Main window disappears. Sometimes.
  • Next by thread: Re: Main window disappears. Sometimes.
  • Index(es):
    • Date
    • Thread