[Mono-osx] [Mono-Mac] NSButton and NSCell State

kjpou1 kjpou at pt.lu
Sat Nov 6 01:59:08 EDT 2010


Hello everyone

I have a question on the NSCell.State and NSButton.State

Shouldn't the State be defined as return type of NSCellStateValue instead of
int?

I know in the official documentation for NSButton and NSCell the state is
defined as:

- (NSInteger)state

In my code I have to cast to an int whereas if it was defined as
NSCellStateValue then there would be no cast and code completion would give
you option instead of developers looking through documentation for the value
to compare to.

I tested it successfully locally and intellisense works as well.

Kenneth

-- 
View this message in context: http://mono.1490590.n4.nabble.com/Mono-Mac-NSButton-and-NSCell-State-tp3029722p3029722.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list