• 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
Simple Undo Manager Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simple Undo Manager Problem


  • Subject: Simple Undo Manager Problem
  • From: hac <email@hidden>
  • Date: Tue, 24 Jul 2007 21:21:03 -0400

I'm haven't had much time to completely get used to Objective C, so
excuse me if this is a dumb question. In an app I'm making there are
various "filters" that can be applied to a textarea. My problem is
that, once a filter is executed, it can't be undone. To fix this
problem, I added the following code before the filter takes place:

[[textArea undoManager] registerUndoWithTarget:textArea
selector:@selector(setString:)
object:[textArea string]];

This successfully added an undo, but when I test it there is no
visable effect, and the textarea does not revert to the old text. I
get no error log. Am I missing something? could somebody please help
me out? Thanks.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Simple Undo Manager Problem
      • From: Martin Wierschin <email@hidden>
  • Prev by Date: Re: Cocoa-dev Digest, Vol 4, Issue 712
  • Next by Date: Autorelease/Retain/Release
  • Previous by thread: Re: Cocoa-dev Digest, Vol 4, Issue 712
  • Next by thread: Re: Simple Undo Manager Problem
  • Index(es):
    • Date
    • Thread