+ [self setImage:trianglebm.GetNSImage()];
+}
+
++ (NSImage *)rotateImage: (NSImage *)image
+{
+ NSSize imageSize = [image size];
+ NSSize newImageSize = NSMakeSize(imageSize.height, imageSize.width);
+ NSImage* newImage = [[NSImage alloc] initWithSize: newImageSize];
+
+ [newImage lockFocus];
+
+ NSAffineTransform* tm = [NSAffineTransform transform];
+ [tm translateXBy:newImageSize.width/2 yBy:newImageSize.height/2];
+ [tm rotateByDegrees:-90];
+ [tm translateXBy:-newImageSize.width/2 yBy:-newImageSize.height/2];
+ [tm concat];
+
+
+ [image drawInRect:NSMakeRect(0,0,newImageSize.width, newImageSize.height)
+ fromRect:NSZeroRect operation:NSCompositeCopy fraction:1.0];
+
+ [newImage unlockFocus];
+ return [newImage autorelease];
+}
+
+@end
+
+class wxDisclosureTriangleCocoaImpl : public wxWidgetCocoaImpl
+{
+public :
+ wxDisclosureTriangleCocoaImpl(wxWindowMac* peer , WXWidget w) :
+ wxWidgetCocoaImpl(peer, w)