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

UndoManager Notifications


  • Subject: UndoManager Notifications
  • From: Saman Ali <email@hidden>
  • Date: Fri, 30 Jan 2004 00:31:28 -0800

Hallo all

My application contains many objects of various types, some of them are observers for the NSUndoManagerWillUndoChangeNotification, NSUndoManagerWillRedoChangeNotification
NSUndoManagerDidUndoChangeNotification, NSUndoManagerDidRedoChangeNotification,

I have a problem by using these Notifications, because the notification does not contain userInfo , so the only information available is the undoActionName, which may not help when the undo manger undo or redo a group of actions at one time.
The result is that all objects response to the notifications which cause errors in my application.

I have test the private variable id _target; of the undoManager class, but it seems to be always nil,
Is it possible to try self to assign the target by prepareWithInvocationTarget:, to get benifit of it in the notification method or have the pointer _target self a value assigned to any time or any where?

greetings
Saman Ali
_______________________________________________
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: plist files
  • Next by Date: drawing text
  • Previous by thread: Re: Drawing a selection rectangle
  • Next by thread: drawing text
  • Index(es):
    • Date
    • Thread