• 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: Quick (?) NSCell question: getting the drawing (inner) rectangle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quick (?) NSCell question: getting the drawing (inner) rectangle


  • Subject: Re: Quick (?) NSCell question: getting the drawing (inner) rectangle
  • From: Benjamin Stiglitz <email@hidden>
  • Date: Thu, 15 Jan 2009 10:17:06 -0500

Perhaps this method is only intended to provide information to the system by the NSCell implementation and is not intended for the purpose I need. In which case, is there a way to achieve what I want without having to ask for the NSTableColumn width and working out what proportion of this width is used for non-'interior' furniture (if any)?

-[NSTableView frameOfCellAtColumn:row:] is what you’re looking for. The frame that’s passed to the interior drawing method is really dependent on the cell subclass you’re using, but it’s based on the frame passed to -[NSCell drawWithFrame:inView:].


Now the standard question: what are you trying to do?

-Ben_______________________________________________

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


References: 
 >Quick (?) NSCell question: getting the drawing (inner) rectangle (From: Luke Evans <email@hidden>)

  • Prev by Date: Re: NSDictionary key from the content of a set
  • Next by Date: Re: drag and drop with "snapping"
  • Previous by thread: Re: Quick (?) NSCell question: getting the drawing (inner) rectangle
  • Next by thread: Center image in NSTableView header
  • Index(es):
    • Date
    • Thread