mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
* Palettes/3Containers/GormNSOutlineView.m
* GormCore/GormMatrixEditor.m * GormCore/GormClassEditor.m some int -> NSInteger and float -> CGFloat transitions spotted by libobjc2 runtime in debug mode git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@36656 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
50545e8f5a
commit
30f4e9a6ff
4 changed files with 15 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
|||
2013-05-26: Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
|
||||
* Palettes/3Containers/GormNSOutlineView.m
|
||||
* GormCore/GormMatrixEditor.m
|
||||
* GormCore/GormClassEditor.m
|
||||
some int -> NSInteger and float -> CGFloat transitions
|
||||
spotted by libobjc2 runtime in debug mode
|
||||
2013-04-14 13:19-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* ANNOUNCE
|
||||
|
|
|
@ -1191,7 +1191,7 @@ objectValueForTableColumn: (NSTableColumn *)aTableColumn
|
|||
[gov setNeedsDisplay: YES];
|
||||
}
|
||||
|
||||
- (int) outlineView: (NSOutlineView *)anOutlineView
|
||||
- (NSInteger) outlineView: (NSOutlineView *)anOutlineView
|
||||
numberOfChildrenOfItem: (id)item
|
||||
{
|
||||
NSArray *subclasses = [classManager subClassesOf: item];
|
||||
|
@ -1213,7 +1213,7 @@ numberOfChildrenOfItem: (id)item
|
|||
}
|
||||
|
||||
- (id) outlineView: (NSOutlineView *)anOutlineView
|
||||
child: (int)index
|
||||
child: (NSInteger)index
|
||||
ofItem: (id)item
|
||||
{
|
||||
NSArray *subclasses = [classManager subClassesOf: item];
|
||||
|
|
|
@ -51,12 +51,12 @@
|
|||
@end
|
||||
|
||||
@interface NSForm (GormAdditions)
|
||||
- (float) titleWidth;
|
||||
- (CGFloat) titleWidth;
|
||||
@end
|
||||
|
||||
@implementation NSForm (GormAdditions)
|
||||
|
||||
- (float)titleWidth
|
||||
- (CGFloat)titleWidth
|
||||
{
|
||||
int i, count = [self numberOfRows];
|
||||
float new_title_width = 0;
|
||||
|
@ -244,7 +244,7 @@ static BOOL done_editing;
|
|||
if (isForm)
|
||||
{
|
||||
/* Set the new title and resize the form to match the titles */
|
||||
float oldTitleWidth, titleWidth;
|
||||
CGFloat oldTitleWidth, titleWidth;
|
||||
NSRect oldFrame;
|
||||
oldTitleWidth = [(NSForm *)_EO titleWidth];
|
||||
[(NSFormCell *)selected setTitle: [editField stringValue]];
|
||||
|
|
|
@ -32,13 +32,13 @@
|
|||
{
|
||||
}
|
||||
- (id)outlineView: (NSOutlineView *)outlineView
|
||||
child: (int)index
|
||||
child: (NSInteger)index
|
||||
ofItem: (id)item;
|
||||
|
||||
- (BOOL)outlineView: (NSOutlineView *)outlineView
|
||||
isItemExpandable: (id)item;
|
||||
|
||||
- (int) outlineView: (NSOutlineView *)outlineView
|
||||
- (NSInteger) outlineView: (NSOutlineView *)outlineView
|
||||
numberOfChildrenOfItem: (id)item;
|
||||
|
||||
- (id) outlineView: (NSOutlineView *)outlineView
|
||||
|
@ -50,7 +50,7 @@
|
|||
@implementation NSOutlineViewDataSource
|
||||
// required methods for data source
|
||||
- (id)outlineView: (NSOutlineView *)outlineView
|
||||
child: (int)index
|
||||
child: (NSInteger)index
|
||||
ofItem: (id)item
|
||||
{
|
||||
if([item isEqual: @"NSObject"])
|
||||
|
@ -108,7 +108,7 @@
|
|||
return NO;
|
||||
}
|
||||
|
||||
- (int) outlineView: (NSOutlineView *)outlineView
|
||||
- (NSInteger) outlineView: (NSOutlineView *)outlineView
|
||||
numberOfChildrenOfItem: (id)item
|
||||
{
|
||||
if(item == nil)
|
||||
|
|
Loading…
Reference in a new issue