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

kjpou1 kjpou at pt.lu
Sun Nov 7 09:25:04 EST 2010

Hello everyone

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

Using the example below:

Mono Definition:

[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.


Returns the receiver’s NSRulerMarkers.

- (NSArray *)markers

Sets the receiver’s ruler markers to markers, removing any existing ruler
markers and not consulting with the client view about the new markers.

- (void)setMarkers:(NSArray *)markers


Another example is the RegisterUnit method where stepUpCycle and
stepDownCycle are NSNumber[] instead of NSArray of NSNumbers.

Mono Definition:

		void RegisterUnit (string unitName, string abbreviation, float
conversionFactor, NSNumber[] stepUpCycle, NSNumber[] stepDownCycle);


Registers a new unit of measurement with the NSRulerView class, making it
available to all instances of NSRulerView.

+ (void)registerUnitWithName:(NSString *)unitName abbreviation:(NSString
*)abbreviation unitToPointsConversionFactor:(CGFloat)conversionFactor
stepUpCycle:(NSArray *)stepUpCycle stepDownCycle:(NSArray *)stepDownCycle

View this message in context: http://mono.1490590.n4.nabble.com/Mono-Mac-NSArray-or-XXXXX-tp3030831p3030831.html
Sent from the Mono - OSX mailing list archive at Nabble.com.

More information about the Mono-osx mailing list