Re: Objective C playing funny, or just me?
Re: Objective C playing funny, or just me?
- Subject: Re: Objective C playing funny, or just me?
- From: "Erik M. Buck" <email@hidden>
- Date: Wed, 10 Oct 2001 02:30:34 -0500
>
newPath = [NSBezierPath bezierPathWithRect:NSMakeRect(0,0,0,0)];
The above line returns an autoreleased object that is deallocated before
mouseDown is called.
You must retain the path if you want to keep references to it.