• 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
View deallocation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

View deallocation


  • Subject: View deallocation
  • From: Neil Earnshaw <email@hidden>
  • Date: Fri, 27 Jun 2003 18:01:12 +0100

I've just created a new project using the PB Cocoa Application
template. Then I went into IB and stuck a custom view in the window.
The custom view was just a subtype of NSView with no extra features. I
saved that lot and added

-(void)dealloc
{
NSLog(@"dealloced");
[super dealloc];
}

I ran the application and closed the window. The log message was not
printed. If I run the app in ObjectAlloc the view's count remains 1
when I close the window.

Shouldn't the view be dealloc'd?

Neil
_______________________________________________
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.

  • Follow-Ups:
    • Re: View deallocation
      • From: Eric Wang <email@hidden>
  • Prev by Date: Versioning issues
  • Next by Date: re Where's my "New Folder" button?
  • Previous by thread: Versioning issues
  • Next by thread: Re: View deallocation
  • Index(es):
    • Date
    • Thread