• 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: NSBezierPath retain crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBezierPath retain crash


  • Subject: Re: NSBezierPath retain crash
  • From: Chad Harrison <email@hidden>
  • Date: Wed, 12 Nov 2003 13:48:31 -0500

On Nov 12, 2003, at 1:43 PM, Christopher Corbell wrote:

If you use a method like bezierPathWithRect, stringWithCString, etc.
or otherwise obtain an autoreleased object, and want to use that
object persistently as a class member, you -must- call retain on the
object. (And then you're responsible for calling release or
autorelease on the object when you're done with it, e.g. you
replace it or the owning class is dealloc'd).



I tried explicitly retaining it, and then releasing it when my object was released, but that also crashed...
_______________________________________________
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.
  • Follow-Ups:
    • Re: NSBezierPath retain crash
      • From: Umed Zokirov <email@hidden>
References: 
 >NSBezierPath retain crash (From: Chad Harrison <email@hidden>)
 >Re: NSBezierPath retain crash (From: Christopher Corbell <email@hidden>)

  • Prev by Date: Re: NSBezierPath retain crash
  • Next by Date: Re: PopUp button + Controller Layer
  • Previous by thread: Re: NSBezierPath retain crash
  • Next by thread: Re: NSBezierPath retain crash
  • Index(es):
    • Date
    • Thread