removeFromSuperview and releasing
removeFromSuperview and releasing
- Subject: removeFromSuperview and releasing
- From: Andrew Mellinger <email@hidden>
- Date: Thu, 6 Nov 2003 17:06:03 -0800
Y'all,
I am using a swap out panel in a window following the example as
described in learning cocoa. I've got a view (NSView in one panel)
with a IB outlet to it. It is called 'theView' in my class. During
awake from Nib I do the following:
[theView retain];
[theView removeFromSuperview];
Okay, now this is my view to put in some other window. That part
works fine. However, if I put the following in my controller's
dealloc method:
[theView release];
I SIGBUS or SIGSEV when I close the document window. I haven't
actually used 'theView' in anything or assigned to to anyone. From
what I understand it is my responsibility to release it now that I've
retained it, so why does it crash?
-Andrew
_______________________________________________
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.