• 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
removeFromSuperview and releasing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Modifying the array of an NSArrayController
  • Next by Date: Subject: Re: XCode problem: debugger doesn't stop on breakpoint
  • Previous by thread: Re: Newbie: No Problems, Program compiles and works, but it has warnings
  • Next by thread: Subject: Re: XCode problem: debugger doesn't stop on breakpoint
  • Index(es):
    • Date
    • Thread