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

about dealloc


  • Subject: about dealloc
  • From: Antonio Inojal <email@hidden>
  • Date: Sun, 12 May 2002 22:24:42 -0400

Hi, say that I create two private objects in the .h file, meaning, they are global. Now, changing the dealloc method and releasing the objects there, will that release the objects? Let me illustrate my example.

Foo.h
There are, say, two private (non-IB) objects.

can I release those objects from the dealloc method such as:
in Foo.m:

- (void)dealloc
{
[other release];
[myText release];
[super dealloc];
}
where other and myText are two objects. Will this happen? Also, when will the dealloc method get called, at the end of the program?? I appreaciate your time very much. Thank You.
Tony
_______________________________________________
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: about dealloc
      • From: Nathan Zamecnik <email@hidden>
    • Re: about dealloc
      • From: Brendan Younger <email@hidden>
  • Prev by Date: Re: NSTask for Java?
  • Next by Date: Re: about dealloc
  • Previous by thread: Stephen McCullagh/Dublin/Ireland/SYMANTEC is out of the office.
  • Next by thread: Re: about dealloc
  • Index(es):
    • Date
    • Thread