Re: NSView subclass never gets dealloced?
Re: NSView subclass never gets dealloced?
- Subject: Re: NSView subclass never gets dealloced?
- From: Nick Müller <email@hidden>
- Date: Fri, 29 Mar 2002 16:32:48 +0100
On 28.03.2002 at 21:31 Uhr, Jonathan Wight wrote:
>
Is the behavior I'm seeing to be expected? Seems fishy to me.
Maybe you made something like this:
MyView *myView = [[MyView alloc] init....]
[someOtherView addSubview:myView];
Now you have to release myView, because adding a subview increases the
retain count (think of it like adding myView to an NSArray).
HTH,
Nick
_______________________________________________
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.