[Mono-osx] NSDeviceSize in DeviceDescription of NSScreen - How to extract values

Eric Hosick erichosick at gmail.com
Sat Mar 26 15:52:40 EDT 2011


Hi,

Any help getting the NSSize value out of an NSValue would be appreciated. A
general understanding of how to getting values from an NSValue would be
appreciated. Please read below for context.

NSDeviceSize contained within the NSDictionary is of type NSValue.

The value in NSValue is an NSSize (according to
NSWindow<http://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#//apple_ref/doc/constant_group/Display_Device_Descriptions_>doc):

NSSize seems to be converted to an SizeF. There is a method like
NSValue.FromSizeF but there doesn't seem to be something liek
SizeF.FromNSValue.

Regards,

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110327/d88f554f/attachment.html 


More information about the Mono-osx mailing list