[MonoTouch] NSNotificationCenter Warning
ayoung
andrewdyoung at gmail.com
Tue Oct 4 13:39:17 EDT 2011
Thanks Jeff and Dimitris.
Jeff, yes, I am curious as to why the former is obsolete.
On Tuesday, October 4, 2011 at 10:36, Jeff Stedfast [via MonoTouch] wrote:
> 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 <[hidden email] (/user/SendEmail.jtp?type=node&node=3871764&i=0)> 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
> > [hidden email] (/user/SendEmail.jtp?type=node&node=3871764&i=1)
> > http://lists.ximian.com/mailman/listinfo/monotouch
> >
>
>
> _______________________________________________
> MonoTouch mailing list
> [hidden email] (/user/SendEmail.jtp?type=node&node=3871764&i=2)
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
> If you reply to this email, your message will be added to the discussion below: http://monotouch.2284126.n4.nabble.com/NSNotificationCenter-Warning-tp3871752p3871764.html
> To start a new topic under MonoTouch, email ml-node+s2284126n3346893h90 at n4.nabble.com (mailto:ml-node+s2284126n3346893h90 at n4.nabble.com)
> To unsubscribe from MonoTouch, click here (http://monotouch.2284126.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3346893&code=YW5kcmV3ZHlvdW5nQGdtYWlsLmNvbXwzMzQ2ODkzfDE5MjczODc4ODI=).
--
View this message in context: http://monotouch.2284126.n4.nabble.com/NSNotificationCenter-Warning-tp3871752p3871773.html
Sent from the MonoTouch mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111004/8f62e076/attachment.html
More information about the MonoTouch
mailing list