NSButton manual drawing
NSButton manual drawing
- Subject: NSButton manual drawing
- From: Yvan BARTHÉLEMY <email@hidden>
- Date: Fri, 13 Mar 2009 16:27:31 +0100
Hi,
I am drawing controls into view to use as feedback during Drag & Drop
operation.
I've tried to draw manually a NSButton (with NSRoundedBezelStyle)
using [[button cell] drawWithFrame:frame inView:[NSView focusView]];
I obtain a button image with the correct background, but the button
text is at the bottom. When I add the button to the view it is
correctly displayed.
Am I doing something wrong, since this method seems to work for popup
buttons ?
Thanks,
Yvan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden