• 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: App crashes on thread exit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App crashes on thread exit


  • Subject: Re: App crashes on thread exit
  • From: Cameron Hayne <email@hidden>
  • Date: Sun, 13 Oct 2002 10:58:46 -0400

On 13/10/02 4:47 am, "Fabio Genoese" <email@hidden> wrote:
> Where should I retain ivars? Sorry, I come from the Java side. I did
> some Cocoa-Java stuff before so Cocoa isn't that new to me but the
> whole alloc/retain/release stuff somewhat is.

You should go and read the articles at
http://www.stepwise.com/StartingPoint/Cocoa.html
about memory management. As a basic rule of thumb, you need to retain all
ivars that you have not alloc'd yourself. You do this when they are
initialized.

--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: App crashes on thread exit (From: Fabio Genoese <email@hidden>)

  • Prev by Date: Re: Displaying different languages in an NSTableView
  • Next by Date: Bug in tableColumnWithIdentifier: ?
  • Previous by thread: Re: App crashes on thread exit
  • Next by thread: Cocoa developers in Austin, Texas
  • Index(es):
    • Date
    • Thread