• 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: NSCell Subclass used in NSTableView, what size does the cell have ( must be availaable to the cell )
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCell Subclass used in NSTableView, what size does the cell have ( must be availaable to the cell )


  • Subject: Re: NSCell Subclass used in NSTableView, what size does the cell have ( must be availaable to the cell )
  • From: Phil Frost <email@hidden>
  • Date: Fri, 16 Dec 2005 09:49:49 -0500

On Fri, Dec 16, 2005 at 03:15:25PM +0100, devmaillists wrote:
> Dear List,
>
> I use a subclassed NSTextFieldCell in a NS TableView.
>
> in setStringValue I think I should limit the the drawing area of the
> NSTextStorage.
> To do this I need to know the Size of my cell.
> The height is not a problem because it is the same for all cells:
> test.height=[((NSTableView*)[self controlView])rowHeight];
> But the collumn I am in is the question.
> Or ist the a single function in the NSCell Class that returns the
> correct frame.
>
> Thank you very much?

You can get the width of the cells from -[NSTableColumn width]. You can
get those columns with -[NSTableView tableColumns].
_______________________________________________
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: 
 >NSCell Subclass used in NSTableView, what size does the cell have ( must be availaable to the cell ) (From: devmaillists <email@hidden>)

  • Prev by Date: Re: NSCell Subclass used in NSTableView, what size does the cell have ( must be availaable to the cell )
  • Next by Date: Deciphering MDSchemaCopyMetaAttributesForAttribute()
  • Previous by thread: Re: NSCell Subclass used in NSTableView, what size does the cell have ( must be availaable to the cell )
  • Next by thread: Deciphering MDSchemaCopyMetaAttributesForAttribute()
  • Index(es):
    • Date
    • Thread