• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Draw a nsview with nsbutton cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Draw a nsview with nsbutton cell


  • Subject: Re: Draw a nsview with nsbutton cell
  • From: Graham Cox <email@hidden>
  • Date: Thu, 18 Oct 2012 17:45:27 +1100

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

  • Follow-Ups:
    • RE: Draw a nsview with nsbutton cell
      • From: Sanjay Arora <email@hidden>
References: 
 >Re: NSTextField not updated during large process (From: Koen van der Drift <email@hidden>)
 >Re: NSTextField not updated during large process (From: Koen van der Drift <email@hidden>)
 >Re: NSTextField not updated during large process (From: Mike Abdullah <email@hidden>)
 >Re: NSTextField not updated during large process (From: Koen van der Drift <email@hidden>)
 >Re: NSTextField not updated during large process (From: Koen van der Drift <email@hidden>)
 >Re: NSTextField not updated during large process (From: Mike Abdullah <email@hidden>)
 >Re: NSTextField not updated during large process (From: Koen van der Drift <email@hidden>)
 >Re: NSTextField not updated during large process (From: Mike Abdullah <email@hidden>)
 >Re: NSTextField not updated during large process (From: Koen van der Drift <email@hidden>)
 >Re: NSTextField not updated during large process (From: Koen van der Drift <email@hidden>)
 >Re: NSTextField not updated during large process (From: Mikevann <email@hidden>)
 >Draw a nsview with nsbutton cell (From: Sanjay Arora <email@hidden>)

  • Prev by Date: Draw a nsview with nsbutton cell
  • Next by Date: RE: Draw a nsview with nsbutton cell
  • Previous by thread: Draw a nsview with nsbutton cell
  • Next by thread: RE: Draw a nsview with nsbutton cell
  • Index(es):
    • Date
    • Thread