[Mono-osx] MonoMac basic Foundation types

Duane Wandless duane at wandless.net
Tue Jul 13 14:34:49 EDT 2010


I think I can answer some of your questions.  Yes NSString can be accessed
from MonoMac.  But most of the time you will just pass a string through the
bindings.  So a generic NSString with the string text is created and passed
through the binding.

A strongly-typed array.  In ObjcC you will see something like this:
NSArray* sortDescriptors;

Possible bindings are:
NSArray SortDescriptors;
NSObject[] SortDescriptors;

And the correct binding is:
NSSortDescriptor[] SortDescriptors;

A strongly-typed array.

Duane


On Tue, Jul 13, 2010 at 2:09 PM, Andrew Brehm <ajbrehm at gmail.com> wrote:

>
> Expose the basic Foundation as C# native types:
> NSString becomes string
> NSArray becomes strongly-typed array
>
> Will this affect all NSString that are parameters for Cocoa methods? Is
> there a way to access NSString for its methods from .NET?
>
> And what's a "strongly-typed array"? Unless I am confused now I thought
> that
> arrays in .NET are of one type (like Int32[]) whereas an NSArray is an
> array
> of objects of any type (or should that of "objects of type id")?
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/MonoMac-basic-Foundation-types-tp2287794p2287794.html
> Sent from the Mono - OSX mailing list archive at Nabble.com.
> _______________________________________________
> 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/20100713/8c1c2504/attachment.html 


More information about the Mono-osx mailing list