[Mono-osx] [MonoMac] [PATCH] maccore/src/foundation.cs - NSUndoManager notifications
Alexander Shulgin
alexander.shulgin at yessoftware.com
Thu Dec 2 05:47:53 EST 2010
Hi,
Attached is a patch which adds NSUndoManager notification constants.
Usage:
NSNotificationCenter.DefaultCenter.AddObserver(this, new
Selector("observeUndoManager:"), NSUndoManager.CheckpointNotification,
undoManager);
[Export("observeUndoManager:")
void ObserveUndoManager(NSNotification notification)
{
...
}
Please push if this looks good.
Btw, if there's a possibility to use C# Delegate to observe
notifications with NSNotificationCenter? Should we add a proxy
NSObject-descendant to make this like we did for attaching DOM event
listeners?
--
Regards,
Alex
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Added-NSUndoManager-notification-constants.patch
Url: http://lists.ximian.com/pipermail/mono-osx/attachments/20101202/f89456e2/attachment.pl
More information about the Mono-osx
mailing list