• 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
Odd error with setDataCell:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Quick question! About init...
  • Next by Date: Re: InfoPlist.strings
  • Previous by thread: Spellchecker dictionary for OS X
  • Next by thread: the bloody Omni frameworks
  • Index(es):
    • Date
    • Thread