• 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
Are undo method arguments retained?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Are undo method arguments retained?


  • Subject: Are undo method arguments retained?
  • From: Dean Tresner <email@hidden>
  • Date: Wed, 26 Jun 2002 11:25:01 -0400

Greetings,

I am tracking down some erratic undo behavior in my code and I'm wondering if I'm making a bad assumption. Here is the accessor method I'm fretting over:

- (void)setItemList:(NSMutableArray *)value {
[[[self undoManager] prepareWithInvocationTarget:self] setItemList:itemList];
[value retain];
[itemList release];
itemList = value;
}

I've assumed that NSUndoManager (or NSInvocation or whatever) will retain the original the original itemList for as long as it's interested in it. Is that not the case?

Dean
_______________________________________________
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: How to write an Menu Extra
  • Next by Date: why setShouldAntialias: NO is not working?
  • Previous by thread: Re: How to write an Menu Extra
  • Next by thread: why setShouldAntialias: NO is not working?
  • Index(es):
    • Date
    • Thread