[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #13046] NSTableView data source providing an NSImage is buggy
From: |
Rob Burns |
Subject: |
[bug #13046] NSTableView data source providing an NSImage is buggy |
Date: |
Tue, 10 May 2005 11:39:07 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050501 Firefox/1.0.3 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13046>
Summary: NSTableView data source providing an NSImage is
buggy
Project: GNUstep
Submitted by: rburns
Submitted on: Tue 05/10/2005 at 11:39
Category: Gui/AppKit
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
If I have some code similar to this:
- (id) tableView: (NSTableView *) aTableView
objectValueForTableColumn: (NSTableColumn *) aTableColumn
row: (int) rowIndex
{
if( [[aTableColumn identifier] isEqualToString: @"Text"] )
{
return [data objectAtIndex: row];
}
if( [[aTableColumn identifier] isEqualToString: @"Pic"])
{
if([[data objectAtIndex: row] length] > 5)
{
return [NSImage imageNamed: @"Star.tiff"];
}
}
return nil;
}
in my data source, all rows after the first row in which the image is
returned will have an image displayed. And scrolling the tableView around
will fill the Pic column of every row with images (even those at the top that
were previously blank). The Pic column's cell is NSImageCell, set in gorm.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13046>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #13046] NSTableView data source providing an NSImage is buggy,
Rob Burns <=