Odd error with setDataCell:
Odd error with setDataCell:
- Subject: Odd error with setDataCell:
- From: David Sinclair <email@hidden>
- Date: Fri, 2 Aug 2002 17:55:35 -0700
The following code works successfully to make an image column in a table view:
NSImage *image = [NSImage imageNamed:@"status-invalid"];
NSImageCell *cell = [[[NSImageCell alloc]
initImageCell:image] autorelease];
NSTableColumn *column = [log tableColumnWithIdentifier:@"Status"];
[column setDataCell:cell];
However, I get a strange error when building: an error and a warning
appears in the build summary, and the following lines appear in the
build log, but despite the "error" it links and runs successfully as
if there wasn't a problem:
Sources/LogController.m:30: illegal expression, found `unknown'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
Sources/LogController.m: In function `-[LogController awakeFromNib]':
Sources/LogController.m:30: warning: `NSTableColumn' does not respond
to `setDataCell:'
Is this a PB bug, or do I need to rebuild something, or is there in
fact a problem with the above code?
--
David Sinclair - email@hidden
http://www.dejal.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.