'incompatible types in initialization' when using NSTableColumn width float
'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