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

Undomanager and deallocate


  • Subject: Undomanager and deallocate
  • From: "Mark's Studio" <email@hidden>
  • Date: Tue, 30 Oct 2001 10:11:18 +0100

What is the correct way of doing this, if any?

[[self undoManager] registerUndoWithTarget:self
selector:@selector(undoMethod:) object:[myObject copy]];

[[self undoManager] registerUndoWithTarget:self
selector:@selector(undoMethod:) object:[[myObject copy] autorelease]];

will the undoManager deallocate myObject when it's finish with it.
i have only tried [myObject copy] and it works without any errors, so is
that ok?


Thanks

Peter Mark

Mark's Recording Studio A/S
Faelledvej 19 b DK2200 N
Copenhagen Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden


  • Follow-Ups:
    • Re: Undomanager and deallocate
      • From: David Remahl <email@hidden>
  • Prev by Date: how to change ower and setuid bit of a bundle application
  • Next by Date: Re: Undomanager and deallocate
  • Previous by thread: Re: how to change ower and setuid bit of a bundle application
  • Next by thread: Re: Undomanager and deallocate
  • Index(es):
    • Date
    • Thread