mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 12:50:47 +00:00
fix a couple ssues with 64bit NSInteger
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40099 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
afdb6075a1
commit
3b3388e8ad
2 changed files with 10 additions and 5 deletions
|
@ -2308,12 +2308,17 @@ Also returns the child index relative to this parent. */
|
|||
objectValueForTableColumn:column
|
||||
byItem:item];
|
||||
|
||||
draggedItemString = [draggedObject description];
|
||||
// Pad the string to match its indentation level:
|
||||
int level = [self levelForRow:row];
|
||||
NSString *pad = [@"" stringByPaddingToLength:(level*4)
|
||||
withString:@" "
|
||||
startingAtIndex:0];
|
||||
draggedItemString = [pad stringByAppendingString:[draggedObject description]];
|
||||
if (level > 0)
|
||||
{
|
||||
NSString *pad = [@"" stringByPaddingToLength:(level*4)
|
||||
withString:@" "
|
||||
startingAtIndex:0];
|
||||
|
||||
draggedItemString = [pad stringByAppendingString:draggedItemString];
|
||||
}
|
||||
}
|
||||
return draggedItemString;
|
||||
}
|
||||
|
|
|
@ -5552,7 +5552,7 @@ This method is deprecated, use -columnIndexesInRect:. */
|
|||
// Build a string of texts, each representing a line from the tableView,
|
||||
// separated by "\n":
|
||||
NSString *descriptionsList = nil;
|
||||
unsigned int index = [rows firstIndex];
|
||||
NSInteger index = [rows firstIndex];
|
||||
while (index != NSNotFound)
|
||||
{
|
||||
NSString *draggedItemString = [self _objectStringForTableColumn:[cols objectAtIndex:0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue