[MonoTouch] NSNotificationCenter Warning

Andrew Young andrewdyoung at gmail.com
Tue Oct 4 13:36:10 EDT 2011


I thought MonoTouch automatically converts strings to NSStrings for you. 

On Tuesday, October 4, 2011 at 10:33, Andrew Young 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. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111004/ad342983/attachment.html 


More information about the MonoTouch mailing list