On 18/10/2012, at 4:05 PM, Sanjay Arora <saar...@quark.com> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com