• 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
Wishing for NSActionImageCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wishing for NSActionImageCell


  • Subject: Wishing for NSActionImageCell
  • From: John Pannell <email@hidden>
  • Date: Mon, 30 Sep 2002 16:52:03 -0600

Hi there-

My application makes use of an NSMatrix that is populated with NSImageCells. I needed the image cells for the way they frame and scale their image, and I love the way is is working. However, I also want the user to be able to click on the cell to make something happen. I would use some subclass of NSActionCell for this, if I understand things correctly. Unfortunately, NSImageCell is not a subclass of NSActionCell.

I'm still no expert, so I'm seeking advice before I get my hands too dirty... my plan is to subclass NSImageCell and override all of the NSCell methods that NSActionCell does. Is this the best plan of attack?

I also tried catching mouse events in the NSMatrix itself, but it seemed kind of hackish.

Any advice is much appreciated!

John P.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: drawGlyphsForGlyphRange
  • Next by Date: Re: [newbie] Handling a preferences window
  • Previous by thread: Re: drawGlyphsForGlyphRange
  • Next by thread: Behavior of autoreleased window controller for closing window vs. app termination
  • Index(es):
    • Date
    • Thread