• 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
Use of cells with custom controls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Use of cells with custom controls


  • Subject: Use of cells with custom controls
  • From: Chase Meadors <email@hidden>
  • Date: Tue, 28 Jul 2009 19:10:15 -0500

I'm making my own class that will input a variety of data in different formats, and NSTableView really seems clunky and unsuited for my purposes. I'm trying to make a custom control, but I don't quite understand what I need to do to use cells in it.

In drawRect, I can just draw the cells I want in the appropriate places with -drawWithFrame:inView:.

However, I'm not sure how I should implement the mouse event methods to get the correct behavior in the cells. Do I test the point of the event, see if it's in a cell, and call some method on that cell to make it active? Is there an easier way?

Any help appreciated.
_______________________________________________

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: Use of cells with custom controls
      • From: "I. Savant" <email@hidden>
  • Prev by Date: NSOpenPanel Exception/Bug
  • Next by Date: Re: Fun (or not) with NSArrayControllers and CoreData.
  • Previous by thread: Re: NSOpenPanel Exception/Bug
  • Next by thread: Re: Use of cells with custom controls
  • Index(es):
    • Date
    • Thread