[Mono-osx] [Mono-Mac] NSArray or XXXXX []

Miguel de Icaza miguel at novell.com
Tue Nov 9 00:32:09 EST 2010

> I have a question about the definitions of some methods.  Which is the
> correct way for the definition NSArray or NSRulerMarker[]?

Use NSRulerMarker [], our runtime knows how to convert those for you

[Export ("markers")]
> NSRulerMarker [] Markers { get; set; }
> In the documentation, the methods markers and setMarkers take or return an
> NSArray of NSRulerMarker's but the definition is defined as above.

Correct;   Whenever possible use strongly typed arrays.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101109/c078337e/attachment.html 

More information about the Mono-osx mailing list