• 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
'incompatible types in initialization' when using NSTableColumn width float
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'incompatible types in initialization' when using NSTableColumn width float


  • Subject: 'incompatible types in initialization' when using NSTableColumn width float
  • From: René van Amerongen <email@hidden>
  • Date: Wed, 18 Oct 2006 20:43:54 +0200
  • Resent-date: Wed, 18 Oct 2006 20:45:44 +0200
  • Resent-from: René van Amerongen <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: Cocoa-Dev <email@hidden>

if I use this inside a NSTableView Category	

NSTableColumn *col = [[self tableColumns]objectAtIndex:0];
or
NSTableColumn *col = [self tableColumnWithIdentifier:@"order"];
float offsetLeftColumn = [col width];

I get in xCode 'incompatible types in initialization'

The docs says

width
Returns the width of the receiver.

- (float)width

if I use int then I get a huge number back, even the debugger says for NSTableView > NSTableColumn > _width 40



I use for now for testing

float offsetLeftCol = [self frameOfCellAtColumn:0 row:1].size.width;

but in reality I have to search for a column with a specific identifier.



Does anyone knows a solution?

Thanks




_______________________________________________ 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
  • Follow-Ups:
    • Re: 'incompatible types in initialization' when using NSTableColumn width float
      • From: René van Amerongen <email@hidden>
  • Prev by Date: (no subject)
  • Next by Date: Re: New File Dialog in Doc Based App
  • Previous by thread: Waiting for NSMetadataQuery to finish?
  • Next by thread: Re: 'incompatible types in initialization' when using NSTableColumn width float
  • Index(es):
    • Date
    • Thread