[Mono-osx] Monomac appkit.cs
Michael Hutchinson
m.j.hutchinson at gmail.com
Thu Apr 22 14:31:33 EDT 2010
On Thu, Apr 22, 2010 at 5:58 PM, James Clancey <james.clancey at gmail.com> wrote:
> Sorry I forgot to include the enums. Here they are. I will start working on
> correcting my errors today.
> Thanks
> public enum NSTableViewColumnAutoresizingStyle {
> NSTableViewNoColumnAutoresizing = 0,
> NSTableViewUniformColumnAutoresizingStyle,
> NSTableViewSequentialColumnAutoresizingStyle,
> NSTableViewReverseSequentialColumnAutoresizingStyle,
> NSTableViewLastColumnOnlyAutoresizingStyle,
> NSTableViewFirstColumnOnlyAutoresizingStyle
> }
There's a lot of redundancy there, since in actual use, the enum value
is always prefixed by the name. How about
public enum NSTableViewColumnAutoresizingStyle {
None = 0,
Uniform,
Sequential,
ReverseSequential,
LastColumnOnly,
FirstColumnOnly
}
public enum NSTableViewSelectionHighlightStyle {
None = -1,
Regular = 0,
SourceList = 1,
}
public enum NSTableViewDraggingDestinationFeedbackStyle {
None = -1,
Regular = 0,
SourceList = 1,
}
public enum NSTableViewDropOperation {
On,
Above
}
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Mono-osx
mailing list