• 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: NSButtonCells in Custom View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSButtonCells in Custom View


  • Subject: Re: NSButtonCells in Custom View
  • From: stephane sudre <email@hidden>
  • Date: Tue, 12 Oct 2004 18:13:34 +0200


On Oct 12, 2004, at 6:07 PM, Michael Becker wrote:

Hi!

I want to draw a matrix of buttons in a custom view that need to re-organise whenever the view's size changes. I've taken the advice to use NSButtonCells instead of NSButtons. However, these NSButtonCells don't do anything. They're displayed, I connected their targets and actions but they don't respond to mouse clicks in whatsoever way.

[...]
So what do I have to do to get the NSButtonCells to work?

Ovverride mouseDown: in your custom view. So that you can redirect the event to the appropriate cell.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >NSButtonCells in Custom View (From: Michael Becker <email@hidden>)

  • Prev by Date: Re: Setting Cursor from Background (Re: Hotkey/Cursor/Windowing questions)
  • Next by Date: Re: Find the 'Application Support' folder
  • Previous by thread: NSButtonCells in Custom View
  • Next by thread: Pattern Image, Tiles or Texture
  • Index(es):
    • Date
    • Thread