• 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
Re: Undo in tables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undo in tables


  • Subject: Re: Undo in tables
  • From: Chris Purcell <email@hidden>
  • Date: Sun, 14 Apr 2002 00:06:50 +0100

I don't think Apple would be so stupid as to not retain critical objects, would they?? Quoth the documentation: "Does not retain target, but does retain anObject" (where anObject in the argument)

Is this incorrect?

Kritter out.

Now this is one aspect of undo that I've heard contradicting
versions of - namely, whether or not arguments are retained by
NSUndoManager when you register an undo. I've seen several
people say that they are not retained, but every test that I've
ever run indicates that they are retained, via -[NSInvocation
retainArguments]. This is confirmed, at least in my apps, by
running OmniObjectMeter and looking at the retain/release
history. Perhaps the arguments are retained when using
prepareWithInvocationTarget: but not
registerUndoWithTarget:selector:object: ?
_______________________________________________
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 load NSTextView?
  • Next by Date: Re: Dynamically loading NIB files into sheets
  • Previous by thread: Re: Undo in tables
  • Next by thread: Re: Undo in tables
  • Index(es):
    • Date
    • Thread