[Mono-osx] [MonoMac] [PATCH] maccore/src/foundation.cs - NSUndoManager notifications
Miguel de Icaza
miguel at novell.com
Thu Dec 2 10:29:19 EST 2010
Applied, thanks!
On Thu, Dec 2, 2010 at 5:47 AM, Alexander Shulgin <
alexander.shulgin at yessoftware.com> wrote:
> 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
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101202/54849ef9/attachment.html
More information about the Mono-osx
mailing list