[MonoTouch] NSNotificationCenter Warning
Jeff Stedfast
jeff at xamarin.com
Tue Oct 4 13:36:24 EDT 2011
Hi ANdrew,
The difference seems to be string vs NSString (I missed it the first time I
looked at it too).
I'm not sure why the old way was obsoleted, though. I could ask around if
you want...
Hope that helps,
Jeff
On Tue, Oct 4, 2011 at 1:33 PM, Andrew Young <andrewdyoung at gmail.com> wrote:
> Why am I getting this warning?
>
> "Warning CS0618:
> `MonoTouch.Foundation.NSNotificationCenter.AddObserver(string,
> System.Action<MonoTouch.Foundation.NSNotification>)' is obsolete: `Use
> AddObserver(NSSstring, Action<NSNotification>) instead'"
>
> I don't see the difference between the two calls. The only difference is
> that the former is fully namespaced. The latter is not. Please tell me I'm
> wrong.
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111004/acac8cd3/attachment.html
More information about the MonoTouch
mailing list