Re: NSSegmentedControl seems to leak with the copy protocol
Re: NSSegmentedControl seems to leak with the copy protocol
- Subject: Re: NSSegmentedControl seems to leak with the copy protocol
- From: Corbin Dunn <email@hidden>
- Date: Wed, 10 Aug 2005 10:14:18 -0700
Le Aug 9, 2005 à 9:49 AM, David Hoerl a écrit :
for(i=0; i<1000; ++i) {
newFoo = [[NSSegmentedControl alloc] initWithFrame:
NSMakeRect(0,0,100,16) ];
newCell = [[foo cell] copy];
[newFoo setCell:newCell];
[newCell release];
}
Well, what is leaking? in the above code you never release newFoo.
That is a leak..
-corbin _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden