]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/colour.mm
Fix handling of the *.* extension case, before this fix it was being passed as a...
[wxWidgets.git] / src / osx / cocoa / colour.mm
index ffce54a7943ab690ec7f7ad189069f2c175470ff..aebe52e1f35654e2850b98d393121685d24691a1 100644 (file)
@@ -33,4 +33,9 @@ wxColour::wxColour(WX_NSColor col)
     }
     InitFromComponents(const_cast<const CGFloat*>(components), noComp);
 }
+
+WX_NSColor wxColour::OSXGetNSColor()
+{
+    return [NSColor colorWithDeviceRed:m_red / 255.0 green:m_green / 255.0 blue:m_blue / 255.0 alpha:m_alpha / 255.0]; 
+}
 #endif
\ No newline at end of file