RE: Draw a nsview with nsbutton cell
RE: Draw a nsview with nsbutton cell
- Subject: RE: Draw a nsview with nsbutton cell
- From: Sanjay Arora <email@hidden>
- Date: Thu, 18 Oct 2012 15:12:58 +0530
- Thread-topic: Draw a nsview with nsbutton cell
Thanks. That works like a charm!
Regards
Sanjay
-----Original Message-----
From: Graham Cox [mailto:email@hidden]
Sent: 18 October 2012 12:15 PM
To: Sanjay Arora
Cc: Cocoa Dev
Subject: Re: Draw a nsview with nsbutton cell
On 18/10/2012, at 4:05 PM, Sanjay Arora <email@hidden> wrote:
> Is there a way I could draw my NSView with the how a NSButtonCell
draws
> on NSButton.
>
> I mean I only want the drawing part of the NSButton to draw on my
nsview
> all other NSButton actions/events should not work. I don't want to add
> NSButton as subview of my NSView however.
Instantiate a NSButtonCell and call its drawing methods from your view's
drawRect:
--Graham
_______________________________________________
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