Fix all current compiler warnings on FreeBSD/x86-64.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36038 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2013-01-30 09:48:54 +00:00
parent fe0444e231
commit 4850a9feac
41 changed files with 266 additions and 262 deletions

View file

@ -175,13 +175,13 @@
}
-(NSString *) browser: (NSBrowser *)sender
titleOfColumn: (int)column
titleOfColumn: (NSInteger)column
{
return nil;
}
-(void) browser: (NSBrowser *)sender
createRowsForColumn: (int)column
createRowsForColumn: (NSInteger)column
inMatrix: (NSMatrix *)matrix
{
int i;
@ -215,16 +215,16 @@ createRowsForColumn: (int)column
}
- (BOOL) browser: (NSBrowser*)sender
selectRow: (int)row
inColumn: (int)column
selectRow: (NSInteger)row
inColumn: (NSInteger)column
{
return NO;
}
- (void) browser: (NSBrowser *)sender
willDisplayCell: (id)cell
atRow: (int)row
column: (int)column
atRow: (NSInteger)row
column: (NSInteger)column
{
}

View file

@ -157,7 +157,7 @@ APPKIT_EXPORT NSString *GSScreenNumber;
- (void) docedited: (int) edited : (int)win;
- (void) setinputstate: (int)state : (int)win;
- (void) setinputfocus: (int)win;
- (void) setalpha: (float)alpha: (int)win;
- (void) setalpha: (float)alpha : (int)win;
- (void) setShadow: (BOOL)hasShadow : (int)win;
- (NSPoint) mouselocation;

View file

@ -40,7 +40,7 @@
@interface NSArrayController : NSObjectController
{
NSMutableArray *_arranged_objects;
NSArray *_arranged_objects;
NSIndexSet *_selection_indexes;
NSArray *_sort_descriptors;
NSPredicate *_filter_predicate;

View file

@ -154,11 +154,11 @@ typedef enum _NSBrowserColumnResizingType
//
// Setting the NSBrowser's Appearance
//
- (int) maxVisibleColumns;
- (int) minColumnWidth;
- (NSInteger) maxVisibleColumns;
- (NSInteger) minColumnWidth;
- (BOOL) separatesColumns;
- (void) setMaxVisibleColumns: (int)columnCount;
- (void) setMinColumnWidth: (int)columnWidth;
- (void) setMaxVisibleColumns: (NSInteger)columnCount;
- (void) setMinColumnWidth: (NSInteger)columnWidth;
- (void) setSeparatesColumns: (BOOL)flag;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_3, GS_API_LATEST)
- (float) columnWidthForColumnContentWidth: (float)columnContentWidth;
@ -169,21 +169,21 @@ typedef enum _NSBrowserColumnResizingType
// Manipulating Columns
//
- (void) addColumn;
- (int) columnOfMatrix: (NSMatrix *)matrix;
- (NSInteger) columnOfMatrix: (NSMatrix *)matrix;
- (void) displayAllColumns;
- (void) displayColumn: (int)column;
- (int) firstVisibleColumn;
- (void) displayColumn: (NSInteger)column;
- (NSInteger) firstVisibleColumn;
- (BOOL) isLoaded;
- (int) lastColumn;
- (int) lastVisibleColumn;
- (NSInteger) lastColumn;
- (NSInteger) lastVisibleColumn;
- (void) loadColumnZero;
- (int) numberOfVisibleColumns;
- (void) reloadColumn: (int)column;
- (NSInteger) numberOfVisibleColumns;
- (void) reloadColumn: (NSInteger)column;
- (void) selectAll: (id)sender;
- (void) selectRow: (int)row inColumn: (int)column;
- (int) selectedColumn;
- (int) selectedRowInColumn: (int)column;
- (void) setLastColumn: (int)column;
- (void) selectRow: (NSInteger)row inColumn: (NSInteger)column;
- (NSInteger) selectedColumn;
- (NSInteger) selectedRowInColumn: (NSInteger)column;
- (void) setLastColumn: (NSInteger)column;
- (void) validateVisibleColumns;
//
@ -191,25 +191,25 @@ typedef enum _NSBrowserColumnResizingType
//
- (void) drawTitle: (NSString *)title
inRect: (NSRect)aRect
ofColumn: (int)column;
ofColumn: (NSInteger)column;
#if OS_API_VERSION(GS_API_MACOSX, GS_API_LATEST)
- (void) drawTitleOfColumn: (int)column
- (void) drawTitleOfColumn: (NSInteger)column
inRect: (NSRect)aRect;
#endif
- (BOOL) isTitled;
- (void) setTitled: (BOOL)flag;
- (void) setTitle: (NSString *)aString
ofColumn: (int)column;
- (NSRect) titleFrameOfColumn: (int)column;
ofColumn: (NSInteger)column;
- (NSRect) titleFrameOfColumn: (NSInteger)column;
- (float) titleHeight;
- (NSString *) titleOfColumn: (int)column;
- (NSString *) titleOfColumn: (NSInteger)column;
//
// Scrolling an NSBrowser
//
- (void) scrollColumnsLeftBy: (int)shiftAmount;
- (void) scrollColumnsRightBy: (int)shiftAmount;
- (void) scrollColumnToVisible: (int)column;
- (void) scrollColumnsLeftBy: (NSInteger)shiftAmount;
- (void) scrollColumnsRightBy: (NSInteger)shiftAmount;
- (void) scrollColumnToVisible: (NSInteger)column;
- (void) scrollViaScroller: (NSScroller *)sender;
- (void) updateScroller;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
@ -225,25 +225,25 @@ typedef enum _NSBrowserColumnResizingType
//
// Getting Matrices and Cells
//
- (id) loadedCellAtRow: (int)row
column: (int)column;
- (NSMatrix *) matrixInColumn: (int)column;
- (id) loadedCellAtRow: (NSInteger)row
column: (NSInteger)column;
- (NSMatrix *) matrixInColumn: (NSInteger)column;
- (id) selectedCell;
- (id) selectedCellInColumn: (int)column;
- (id) selectedCellInColumn: (NSInteger)column;
- (NSArray *) selectedCells;
//
// Getting Column Frames
//
- (NSRect) frameOfColumn: (int)column;
- (NSRect) frameOfInsideOfColumn: (int)column;
- (NSRect) frameOfColumn: (NSInteger)column;
- (NSRect) frameOfInsideOfColumn: (NSInteger)column;
//
// Manipulating Paths
//
- (NSString *) path;
- (NSString *) pathSeparator;
- (NSString *) pathToColumn: (int)column;
- (NSString *) pathToColumn: (NSInteger)column;
- (BOOL) setPath: (NSString *)path;
- (void) setPathSeparator: (NSString *)aString;
@ -260,8 +260,8 @@ typedef enum _NSBrowserColumnResizingType
- (void) setColumnResizingType:(NSBrowserColumnResizingType) type;
- (BOOL) prefersAllColumnUserResizing;
- (void) setPrefersAllColumnUserResizing: (BOOL)flag;
- (float) widthOfColumn: (int)column;
- (void) setWidth: (float)columnWidth ofColumn: (int)columnIndex;
- (float) widthOfColumn: (NSInteger)column;
- (void) setWidth: (float)columnWidth ofColumn: (NSInteger)columnIndex;
//
// Autosave names
@ -287,29 +287,29 @@ typedef enum _NSBrowserColumnResizingType
//
@interface NSObject (NSBrowserDelegate)
- (void) browser: (NSBrowser *)sender createRowsForColumn: (int)column
- (void) browser: (NSBrowser *)sender createRowsForColumn: (NSInteger)column
inMatrix: (NSMatrix *)matrix;
/** Returns YES iff */
- (BOOL) browser: (NSBrowser *)sender isColumnValid: (int)column;
- (int) browser: (NSBrowser *)sender numberOfRowsInColumn: (int)column;
- (BOOL) browser: (NSBrowser *)sender isColumnValid: (NSInteger)column;
- (NSInteger) browser: (NSBrowser *)sender numberOfRowsInColumn: (NSInteger)column;
- (BOOL) browser: (NSBrowser *)sender selectCellWithString: (NSString *)title
inColumn: (int)column;
- (BOOL) browser: (NSBrowser *)sender selectRow: (int)row inColumn: (int)column;
- (NSString *) browser: (NSBrowser *)sender titleOfColumn: (int)column;
inColumn: (NSInteger)column;
- (BOOL) browser: (NSBrowser *)sender selectRow: (NSInteger)row inColumn: (NSInteger)column;
- (NSString *) browser: (NSBrowser *)sender titleOfColumn: (NSInteger)column;
- (void) browser: (NSBrowser *)sender
willDisplayCell: (id)cell
atRow: (int)row
column: (int)column;
atRow: (NSInteger)row
column: (NSInteger)column;
- (void) browserDidScroll: (NSBrowser *)sender;
- (void) browserWillScroll: (NSBrowser *)sender;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_3, GS_API_LATEST)
- (float) browser: (NSBrowser *)browser
shouldSizeColumn: (int)column
shouldSizeColumn: (NSInteger)column
forUserResize: (BOOL)flag
toWidth: (float)width;
- (float) browser: (NSBrowser *)browser
sizeToFitWidthOfColumn: (int)column;
sizeToFitWidthOfColumn: (NSInteger)column;
- (void) browserColumnConfigurationDidChange: (NSNotification *)notification;
#endif
@end

View file

@ -115,8 +115,8 @@
- (void)setAlignment:(NSTextAlignment)mode;
- (void)setFont:(NSFont *)fontObject;
- (void)setFloatingPointFormat:(BOOL)autoRange
left:(unsigned)leftDigits
right:(unsigned)rightDigits;
left:(NSUInteger)leftDigits
right:(NSUInteger)rightDigits;
#if OS_API_VERSION(GS_API_MACOSX, GS_API_LATEST)
- (void)setFormatter:(NSFormatter*)newFormatter;
- (id)formatter;
@ -155,7 +155,7 @@
- (BOOL)isContinuous;
- (BOOL)sendAction:(SEL)theAction
to:(id)theTarget;
- (int)sendActionOn:(int)mask;
- (NSInteger)sendActionOn:(NSInteger)mask;
- (void)setAction:(SEL)aSelector;
- (void)setContinuous:(BOOL)flag;
- (void)setTarget:(id)anObject;

View file

@ -193,8 +193,8 @@ typedef enum _NSMatrixMode {
- (BOOL) selectCellWithTag: (int)anInt;
- (id) selectedCell;
- (NSArray *) selectedCells;
- (int) selectedColumn;
- (int) selectedRow;
- (NSInteger) selectedColumn;
- (NSInteger) selectedRow;
- (void) setSelectionFrom: (int)startPos
to: (int)endPos
anchor: (int)anchorPos

View file

@ -49,9 +49,10 @@ typedef enum _NSTableViewDropOperation {
} NSTableViewDropOperation;
enum {
NSTableViewGridNone = 0,
NSTableViewSolidVerticalGridLineMask = 1,
NSTableViewSolidHorizontalGridLineMask = 2
NSTableViewGridNone = 0,
NSTableViewSolidVerticalGridLineMask = 1 << 0,
NSTableViewSolidHorizontalGridLineMask = 1 << 1,
NSTableViewDashedHorizontalGridLineMask = 1 << 3
};
#if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST)
@ -65,6 +66,8 @@ typedef enum _NSTableViewColumnAutoresizingStyle
NSTableViewFirstColumnOnlyAutoresizingStyle
} NSTableViewColumnAutoresizingStyle;
#endif
typedef NSUInteger NSTableViewGridLineStyle;
@interface NSTableView : NSControl <NSUserInterfaceValidations>
{
@ -157,8 +160,8 @@ typedef enum _NSTableViewColumnAutoresizingStyle
/* Target-action */
- (void) setDoubleAction: (SEL)aSelector;
- (SEL) doubleAction;
- (int) clickedColumn;
- (int) clickedRow;
- (NSInteger) clickedColumn;
- (NSInteger) clickedRow;
/* Configuration */
- (void) setAllowsColumnReordering: (BOOL)flag;
@ -187,34 +190,34 @@ typedef enum _NSTableViewColumnAutoresizingStyle
/* Columns */
- (void) addTableColumn: (NSTableColumn *)aColumn;
- (void) removeTableColumn: (NSTableColumn *)aColumn;
- (void) moveColumn: (int)columnIndex toColumn: (int)newIndex;
- (void) moveColumn: (NSInteger)columnIndex toColumn: (NSInteger)newIndex;
- (NSArray *) tableColumns;
- (int) columnWithIdentifier: (id)identifier;
- (NSInteger) columnWithIdentifier: (id)identifier;
- (NSTableColumn *) tableColumnWithIdentifier: (id)anObject;
/* Selecting Columns and Rows */
- (void) selectColumn: (int) columnIndex byExtendingSelection: (BOOL)flag;
- (void) selectRow: (int) rowIndex byExtendingSelection: (BOOL)flag;
- (void) selectColumn: (NSInteger) columnIndex byExtendingSelection: (BOOL)flag;
- (void) selectRow: (NSInteger) rowIndex byExtendingSelection: (BOOL)flag;
- (void) selectColumnIndexes: (NSIndexSet *)indexes byExtendingSelection: (BOOL)extend;
- (void) selectRowIndexes: (NSIndexSet *)indexes byExtendingSelection: (BOOL)extend;
- (NSIndexSet *) selectedColumnIndexes;
- (NSIndexSet *) selectedRowIndexes;
- (void) deselectColumn: (int)columnIndex;
- (void) deselectRow: (int)rowIndex;
- (int) numberOfSelectedColumns;
- (int) numberOfSelectedRows;
- (int) selectedColumn;
- (int) selectedRow;
- (BOOL) isColumnSelected: (int)columnIndex;
- (BOOL) isRowSelected: (int)rowIndex;
- (void) deselectColumn: (NSInteger)columnIndex;
- (void) deselectRow: (NSInteger)rowIndex;
- (NSInteger) numberOfSelectedColumns;
- (NSInteger) numberOfSelectedRows;
- (NSInteger) selectedColumn;
- (NSInteger) selectedRow;
- (BOOL) isColumnSelected: (NSInteger)columnIndex;
- (BOOL) isRowSelected: (NSInteger)rowIndex;
- (NSEnumerator *) selectedColumnEnumerator;
- (NSEnumerator *) selectedRowEnumerator;
- (void) selectAll: (id)sender;
- (void) deselectAll: (id)sender;
/* Table Dimensions */
- (int) numberOfColumns;
- (int) numberOfRows;
- (NSInteger) numberOfColumns;
- (NSInteger) numberOfRows;
/* Grid Drawing attributes */
- (void) setDrawsGrid: (BOOL)flag;
@ -222,18 +225,18 @@ typedef enum _NSTableViewColumnAutoresizingStyle
- (void) setGridColor: (NSColor *)aColor;
- (NSColor *) gridColor;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_3, GS_API_LATEST)
- (void) setGridStyleMask: (unsigned int)gridType;
- (unsigned int) gridStyleMask;
- (void) setGridStyleMask: (NSTableViewGridLineStyle)gridType;
- (NSTableViewGridLineStyle) gridStyleMask;
#endif
/* Editing Cells */
/* ALL TODOS */
- (void) editColumn: (int)columnIndex
row: (int)rowIndex
- (void) editColumn: (NSInteger)columnIndex
row: (NSInteger)rowIndex
withEvent: (NSEvent *)theEvent
select: (BOOL)flag;
- (int) editedRow;
- (int) editedColumn;
- (NSInteger) editedRow;
- (NSInteger) editedColumn;
/* Auxiliary Components */
- (void) setHeaderView: (NSTableHeaderView*)aHeaderView;
@ -242,17 +245,17 @@ typedef enum _NSTableViewColumnAutoresizingStyle
- (NSView*) cornerView;
/* Layout */
- (NSRect) rectOfColumn: (int)columnIndex;
- (NSRect) rectOfRow: (int)rowIndex;
- (NSRect) rectOfColumn: (NSInteger)columnIndex;
- (NSRect) rectOfRow: (NSInteger)rowIndex;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
- (NSIndexSet *) columnIndexesInRect: (NSRect)aRect;
#endif
- (NSRange) columnsInRect: (NSRect)aRect;
- (NSRange) rowsInRect: (NSRect)aRect;
- (int) columnAtPoint: (NSPoint)aPoint;
- (int) rowAtPoint: (NSPoint)aPoint;
- (NSRect) frameOfCellAtColumn: (int)columnIndex
row: (int)rowIndex;
- (NSInteger) columnAtPoint: (NSPoint)aPoint;
- (NSInteger) rowAtPoint: (NSPoint)aPoint;
- (NSRect) frameOfCellAtColumn: (NSInteger)columnIndex
row: (NSInteger)rowIndex;
- (void) setAutoresizesAllColumnsToFit: (BOOL)flag;
- (BOOL) autoresizesAllColumnsToFit;
- (void) sizeLastColumnToFit;
@ -265,7 +268,7 @@ typedef enum _NSTableViewColumnAutoresizingStyle
#endif
/* Drawing */
- (void) drawRow: (int)rowIndex clipRect: (NSRect)clipRect;
- (void) drawRow: (NSInteger)rowIndex clipRect: (NSRect)clipRect;
- (void) drawGridInClipRect: (NSRect)aRect;
- (void) highlightSelectionInClipRect: (NSRect)clipRect;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_3, GS_API_LATEST)
@ -273,8 +276,8 @@ typedef enum _NSTableViewColumnAutoresizingStyle
#endif
/* Scrolling */
- (void) scrollRowToVisible: (int)rowIndex;
- (void) scrollColumnToVisible: (int)columnIndex;
- (void) scrollRowToVisible: (NSInteger)rowIndex;
- (void) scrollColumnToVisible: (NSInteger)columnIndex;
/* Text delegate methods */
- (BOOL) textShouldBeginEditing: (NSText *)textObject;
@ -309,7 +312,7 @@ typedef enum _NSTableViewColumnAutoresizingStyle
- (NSImage*) dragImageForRows: (NSArray*)dragRows
event: (NSEvent*)dragEvent
dragImageOffset: (NSPoint*)dragImageOffset;
- (void) setDropRow: (int)row
- (void) setDropRow: (NSInteger)row
dropOperation: (NSTableViewDropOperation)operation;
- (void) setVerticalMotionCanBeginDrag: (BOOL)flag;
- (BOOL) verticalMotionCanBeginDrag;
@ -333,8 +336,8 @@ typedef enum _NSTableViewColumnAutoresizingStyle
@end /* interface of NSTableView */
@interface NSTableView (GNUPrivate)
- (void) _sendDoubleActionForColumn: (int)columnIndex;
- (void) _selectColumn: (int)columnIndex
- (void) _sendDoubleActionForColumn: (NSInteger)columnIndex;
- (void) _selectColumn: (NSInteger)columnIndex
modifiers: (unsigned int)modifiers;
@end
@ -347,23 +350,23 @@ typedef enum _NSTableViewColumnAutoresizingStyle
/**
* Returns the number of records that the data source manages for <em>aTableView</em>.
*/
- (int) numberOfRowsInTableView: (NSTableView *)aTableView;
- (NSInteger) numberOfRowsInTableView: (NSTableView *)aTableView;
- (id) tableView: (NSTableView *)aTableView
objectValueForTableColumn: (NSTableColumn *)aTableColumn
row: (int)rowIndex;
row: (NSInteger)rowIndex;
- (void) tableView: (NSTableView *)aTableView
setObjectValue: (id)anObject
forTableColumn: (NSTableColumn *)aTableColumn
row: (int)rowIndex;
row: (NSInteger)rowIndex;
/* Dragging */
- (BOOL) tableView: (NSTableView*)tableView
acceptDrop: (id <NSDraggingInfo>)info
row: (int)row
row: (NSInteger)row
dropOperation: (NSTableViewDropOperation)operation;
- (NSDragOperation) tableView: (NSTableView*)tableView
validateDrop: (id <NSDraggingInfo>)info
proposedRow: (int)row
proposedRow: (NSInteger)row
proposedDropOperation: (NSTableViewDropOperation)operation;
- (BOOL) tableView: (NSTableView*)tableView
writeRows: (NSArray*)rows
@ -406,19 +409,19 @@ mouseDownInHeaderOfTableColumn: (NSTableColumn *)tableColumn;
#endif
- (BOOL)tableView: (NSTableView *)aTableView
shouldEditTableColumn: (NSTableColumn *)aTableColumn
row: (int)rowIndex;
row: (NSInteger)rowIndex;
- (BOOL) tableView: (NSTableView *)aTableView
shouldSelectRow: (int)rowIndex;
shouldSelectRow: (NSInteger)rowIndex;
- (BOOL) tableView: (NSTableView *)aTableView
shouldSelectTableColumn: (NSTableColumn *)aTableColumn;
- (void) tableView: (NSTableView *)aTableView
willDisplayCell: (id)aCell
forTableColumn: (NSTableColumn *)aTableColumn
row: (int)rowIndex;
row: (NSInteger)rowIndex;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
- (NSCell *) tableView: (NSTableView *)aTableView
dataCellForTableColumn: (NSTableColumn *)aTableColumn
row: (int)rowIndex;
row: (NSInteger)rowIndex;
#endif
- (void) tableViewColumnDidMove: (NSNotification *)aNotification;
- (void) tableViewColumnDidResize: (NSNotification *)aNotification;
@ -426,12 +429,12 @@ dataCellForTableColumn: (NSTableColumn *)aTableColumn
- (void) tableViewSelectionIsChanging: (NSNotification *)aNotification;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST)
- (float) tableView: (NSTableView *)tableView
heightOfRow: (int)row;
heightOfRow: (NSInteger)row;
- (NSString *) tableView: (NSTableView *)tableView
toolTipForCell: (NSCell *)cell
rect: (NSRect *)rect
tableColumn: (NSTableColumn *)col
row: (int)row
row: (NSInteger)row
mouseLocation: (NSPoint)mouse;
#endif
@end

View file

@ -74,7 +74,7 @@ APPKIT_EXPORT NSString *NSToolbarWillAddItemNotification;
@interface NSToolbar : NSObject
{
NSMutableDictionary *_configurationDictionary;
NSDictionary *_configurationDictionary;
id _delegate;
NSString *_identifier;
NSString *_selectedItemIdentifier;

View file

@ -819,7 +819,7 @@ GSCurrentServer(void)
}
/** Sets the transparancy value for the whole window */
- (void) setalpha: (float)alpha: (int) win
- (void) setalpha: (float)alpha : (int) win
{
//[self subclassResponsibility: _cmd];
}

View file

@ -108,7 +108,7 @@
[self setExcludedFromWindowsMenu: YES];
}
- (void) orderWindow: (NSWindowOrderingMode)place relativeTo: (int)otherWin
- (void) orderWindow: (NSWindowOrderingMode)place relativeTo: (NSInteger)otherWin
{
[super orderWindow: place relativeTo: otherWin];
[self setLevel: NSPopUpMenuWindowLevel];

View file

@ -3208,7 +3208,7 @@ forStartingGlyphAtIndex: (NSUInteger)glyph
len = glyph - gpos + length;
if (len < 0)
{
NSLog(@"Insert %d glyphs at %d for index %d", length, glyph, index);
NSLog(@"Insert %d glyphs at %d for index %d", (int)length, (int)glyph, (int)index);
NSLog(@"Found gpos %d cpos %d len %d", gpos, cpos, len);
[NSException raise: NSRangeException
format: @"%s glyph index out of range", __PRETTY_FUNCTION__];

View file

@ -310,14 +310,14 @@ static GSMemoryPanel *sharedGSMemoryPanel = nil;
[super dealloc];
}
- (int) numberOfRowsInTableView: (NSTableView *)aTableView
- (NSInteger) numberOfRowsInTableView: (NSTableView *)aTableView
{
return [array count];
}
- (id) tableView: (NSTableView *)aTableView
objectValueForTableColumn: (NSTableColumn *)aTableColumn
row:(int)rowIndex
row:(NSInteger)rowIndex
{
GSMemoryPanelEntry *entry = [array objectAtIndex: rowIndex];
id identifier = [aTableColumn identifier];

View file

@ -1184,7 +1184,7 @@ static BOOL _isInInterfaceBuilder = NO;
NSStringFromClass([coder class])];
}
return _view;
return (id)_view;
}
- (void) encodeWithCoder: (NSCoder *)coder
@ -2342,7 +2342,7 @@ static BOOL _isInInterfaceBuilder = NO;
}
RELEASE(self);
return dn;
return (id)dn;
}
@end

View file

@ -690,7 +690,7 @@ typedef struct {
colorsPath = [_bundle pathForResource: @"ThemeColors" ofType: @"clr"];
if (colorsPath == nil)
{
_colors = [null retain];
_colors = (id)[null retain];
}
else
{

View file

@ -143,7 +143,7 @@
}
}
- (void) drawRect: (id)dirtyRect
- (void) drawRect: (NSRect)dirtyRect
{
if (_text)
{

View file

@ -1095,7 +1095,7 @@
if ([xmlKeys count] != [xmlObjs count])
{
NSLog(@"%s:keys to objs count mismatch - keys: %d objs: %d\n", __PRETTY_FUNCTION__,
[xmlKeys count], [xmlObjs count]);
(int)[xmlKeys count], (int)[xmlObjs count]);
}
else
{

View file

@ -105,8 +105,8 @@ static Class controlClass;
}
- (void) setFloatingPointFormat: (BOOL)autoRange
left: (unsigned int)leftDigits
right: (unsigned int)rightDigits
left: (NSUInteger)leftDigits
right: (NSUInteger)rightDigits
{
[super setFloatingPointFormat: autoRange
left: leftDigits

View file

@ -1897,7 +1897,7 @@ void NSBeginInformationalAlertSheet(NSString *title,
- (NSButton *) addButtonWithTitle: (NSString *)aTitle
{
NSButton *button = [[NSButton alloc] init];
int count = [_buttons count];
NSUInteger count = [_buttons count];
[button setTitle: aTitle];
[button setAutoresizingMask: NSViewMinXMargin | NSViewMaxYMargin];
@ -2172,8 +2172,8 @@ NSInteger GSRunExceptionPanel(
[_userInfoPanel makeKeyAndOrderFront: self];
}
- (int) browser: (id)browser
numberOfRowsInColumn: (int)col
- (NSInteger) browser: (id)browser
numberOfRowsInColumn: (NSInteger)col
{
if (col == 0)
return [[_userInfo allKeys] count];
@ -2201,8 +2201,8 @@ numberOfRowsInColumn: (int)col
- (void) browser: (NSBrowser *)browser
willDisplayCell: (NSBrowserCell *)cell
atRow: (int)row
column: (int)column
atRow: (NSInteger)row
column: (NSInteger)column
{
if (column == 0)
{
@ -2295,7 +2295,7 @@ numberOfRowsInColumn: (int)col
}
}
- (id) browser: (NSBrowser *)browser titleOfColumn: (int)column
- (id) browser: (NSBrowser *)browser titleOfColumn: (NSInteger)column
{
id val;
NSString *title;

View file

@ -343,7 +343,7 @@ gsapp_user_bundles(void)
c = [a count];
if (a == nil || c == 0)
return;
NSLog(@"Loading %d user defined AppKit bundles", c);
NSLog(@"Loading %d user defined AppKit bundles", (int)c);
for (i = 0; i < c; i++)
{
NSBundle *b = [NSBundle bundleWithPath: [a objectAtIndex: i]];

View file

@ -326,7 +326,7 @@ static NSTextFieldCell *titleCell;
Returns nil if no cell is selected</p>
<p>See Also: -selectedCell -selectedCells</p>
*/
- (id) selectedCellInColumn: (int)column
- (id) selectedCellInColumn: (NSInteger)column
{
NSMatrix *matrix;
@ -380,7 +380,7 @@ static NSTextFieldCell *titleCell;
index <var>column</var>. Returns -1 if no cell is selected</p>
<p>See Also: -selectedCellInColumn: [NSMatrix-selectedRow]</p>
*/
- (int) selectedRowInColumn: (int)column
- (NSInteger) selectedRowInColumn: (NSInteger)column
{
NSMatrix *matrix;
@ -400,7 +400,7 @@ static NSTextFieldCell *titleCell;
selection.</p><p>See Also: -loadedCellAtRow:column:
-browser:selectRow:inColumn: [NSMatrix-selectCellAtRow:column:]</p>
*/
- (void) selectRow: (int)row inColumn: (int)column
- (void) selectRow: (NSInteger)row inColumn: (NSInteger)column
{
NSMatrix *matrix;
id cell;
@ -447,8 +447,8 @@ static NSTextFieldCell *titleCell;
if you change this code, you may want to look at the __performLoadOfColumn:
method in which the following code is integrated (for speed)
*/
- (id) loadedCellAtRow: (int)row
column: (int)column
- (id) loadedCellAtRow: (NSInteger)row
column: (NSInteger)column
{
NSMatrix *matrix;
NSCell *cell;
@ -487,7 +487,7 @@ static NSTextFieldCell *titleCell;
/** <p>Returns the matrix located in the column identified by index
<var>column</var>. Returns nil if the matrix does not exists</p>
*/
- (NSMatrix *) matrixInColumn: (int)column
- (NSMatrix *) matrixInColumn: (NSInteger)column
{
NSBrowserColumn *browserColumn;
@ -555,7 +555,7 @@ static NSTextFieldCell *titleCell;
NSMutableArray *subStrings;
unsigned numberOfSubStrings;
unsigned indexOfSubStrings;
int column;
NSInteger column;
BOOL useDelegate = NO;
if ([_browserDelegate respondsToSelector:
@ -639,8 +639,8 @@ static NSTextFieldCell *titleCell;
}
else
{
int numOfRows = [matrix numberOfRows];
int row;
NSInteger numOfRows = [matrix numberOfRows];
NSInteger row;
// find the cell in the browser matrix which is equal to aStr
for (row = 0; row < numOfRows; row++)
@ -665,7 +665,7 @@ static NSTextFieldCell *titleCell;
// if unable to find a cell whose title matches aStr return NO
NSDebugLLog (@"NSBrowser",
@"unable to find cell '%@' in column %d\n",
aStr, column);
aStr, (int)column);
break;
}
@ -696,11 +696,11 @@ static NSTextFieldCell *titleCell;
/** <p>Returns a string representing the path from the first column up to,
but not including, the column at index column.</p>
<p>See Also: -path</p>*/
- (NSString *) pathToColumn: (int)column
- (NSString *) pathToColumn: (NSInteger)column
{
NSMutableString *separator = [_pathSeparator mutableCopy];
NSString *string;
int i;
NSInteger i;
/*
* Cannot go past the number of loaded columns
@ -835,7 +835,7 @@ static NSTextFieldCell *titleCell;
- (BOOL) becomeFirstResponder
{
NSMatrix *matrix;
int selectedColumn;
NSInteger selectedColumn;
selectedColumn = [self selectedColumn];
if (selectedColumn == -1)
@ -860,7 +860,7 @@ static NSTextFieldCell *titleCell;
/** <p>Updates the NSBrowser to display the column with the given index.</p>
*/
- (void) displayColumn: (int)column
- (void) displayColumn: (NSInteger)column
{
NSBrowserColumn *bc;
NSScrollView *sc;
@ -894,7 +894,7 @@ static NSTextFieldCell *titleCell;
/** <p>Returns the column number in which <var>matrix</var> is located.
Returns -1 if <var>matrix</var> is not found.</p>
*/
- (int) columnOfMatrix: (NSMatrix *)matrix
- (NSInteger) columnOfMatrix: (NSMatrix *)matrix
{
int i, count;
@ -911,7 +911,7 @@ static NSTextFieldCell *titleCell;
}
/** Returns the index of the last column with a selected item. */
- (int) selectedColumn
- (NSInteger) selectedColumn
{
int i;
NSMatrix *matrix;
@ -930,7 +930,7 @@ static NSTextFieldCell *titleCell;
/** <p>Returns the index of the last column loaded.</p>
<p>See Also: -setLastColumn:</p>
*/
- (int) lastColumn
- (NSInteger) lastColumn
{
return _lastColumnLoaded;
}
@ -938,7 +938,7 @@ static NSTextFieldCell *titleCell;
/** <p>Sets the last column to <var>column</var>.</p>
<p>See Also: -lastColumn </p>
*/
- (void) setLastColumn: (int)column
- (void) setLastColumn: (NSInteger)column
{
int i, count;
NSBrowserColumn *bc;
@ -989,16 +989,16 @@ static NSTextFieldCell *titleCell;
}
/** Returns the index of the first visible column. */
- (int) firstVisibleColumn
- (NSInteger) firstVisibleColumn
{
return _firstVisibleColumn;
}
/** <p>Returns the number of columns visible.</p>
<p>See Also: -firstVisibleColumn -lastVisibleColumn</p>*/
- (int) numberOfVisibleColumns
- (NSInteger) numberOfVisibleColumns
{
int num;
NSInteger num;
num = _lastVisibleColumn - _firstVisibleColumn + 1;
@ -1006,7 +1006,7 @@ static NSTextFieldCell *titleCell;
}
/** Returns the index of the last visible column. */
- (int) lastVisibleColumn
- (NSInteger) lastVisibleColumn
{
return _lastVisibleColumn;
}
@ -1062,7 +1062,7 @@ static NSTextFieldCell *titleCell;
/** Reloads column if it is loaded; sets it as the last column.
Reselects previously selected cells, if they remain. */
- (void) reloadColumn: (int)column
- (void) reloadColumn: (NSInteger)column
{
NSArray *selectedCells;
NSEnumerator *selectedCellsEnumerator;
@ -1206,7 +1206,7 @@ static NSTextFieldCell *titleCell;
/**<p>Returns the maximum number of visible columns. By default a NSBrowser
has 3 visible columns.</p><p>See Also: -setMaxVisibleColumns:</p>
*/
- (int) maxVisibleColumns
- (NSInteger) maxVisibleColumns
{
return _maxVisibleColumns;
}
@ -1215,7 +1215,7 @@ static NSTextFieldCell *titleCell;
subviews. By default a NSBrowser has 3 visible columns.</p>
<p>See Also: -maxVisibleColumns</p>
*/
- (void) setMaxVisibleColumns: (int)columnCount
- (void) setMaxVisibleColumns: (NSInteger)columnCount
{
if ((columnCount < 1) || (_maxVisibleColumns == columnCount))
return;
@ -1229,7 +1229,7 @@ static NSTextFieldCell *titleCell;
/** <p>Returns the minimum column width in pixels.</p>
<p>See Also: -setMinColumnWidth:</p>
*/
- (int) minColumnWidth
- (NSInteger) minColumnWidth
{
return _minColumnWidth;
}
@ -1237,7 +1237,7 @@ static NSTextFieldCell *titleCell;
/** <p>Sets the minimum column width in pixels and adjusts subviews.</p>
<p>See Also: -minColumnWidth</p>
*/
- (void) setMinColumnWidth: (int)columnWidth
- (void) setMinColumnWidth: (NSInteger)columnWidth
{
float sw;
@ -1272,7 +1272,7 @@ static NSTextFieldCell *titleCell;
NSBrowserColumn *bc;
NSScrollView *sc;
NSBorderType bt;
int i, columnCount;
NSInteger i, columnCount;
// if this flag already set or browser is titled -- do nothing
if (_separatesColumns == flag || _isTitled)
@ -1341,7 +1341,7 @@ static NSTextFieldCell *titleCell;
_prefersAllColumnUserResizing = flag;
}
- (float) widthOfColumn: (int)column
- (float) widthOfColumn: (NSInteger)column
{
NSBrowserColumn *browserColumn;
@ -1350,7 +1350,7 @@ static NSTextFieldCell *titleCell;
return browserColumn->_width;
}
- (void) setWidth: (float)columnWidth ofColumn: (int)columnIndex
- (void) setWidth: (float)columnWidth ofColumn: (NSInteger)columnIndex
{
NSBrowserColumn *browserColumn;
@ -1391,7 +1391,7 @@ static NSTextFieldCell *titleCell;
/** Returns the title displayed for the column at index column.
*/
- (NSString *) titleOfColumn: (int)column
- (NSString *) titleOfColumn: (NSInteger)column
{
NSBrowserColumn *browserColumn;
@ -1406,7 +1406,7 @@ static NSTextFieldCell *titleCell;
<p>See Also: -isTitled -titleFrameOfColumn: -titleHeight</p>
*/
- (void) setTitle: (NSString *)aString
ofColumn: (int)column
ofColumn: (NSInteger)column
{
NSBrowserColumn *bc;
@ -1446,7 +1446,7 @@ static NSTextFieldCell *titleCell;
/**
*/
- (void) drawTitleOfColumn: (int)column
- (void) drawTitleOfColumn: (NSInteger)column
inRect: (NSRect)aRect
{
[self drawTitle: [self titleOfColumn: column]
@ -1458,7 +1458,7 @@ static NSTextFieldCell *titleCell;
defined by aRect. */
- (void) drawTitle: (NSString *)title
inRect: (NSRect)aRect
ofColumn: (int)column
ofColumn: (NSInteger)column
{
if (!_isTitled || !NSBR_COLUMN_IS_VISIBLE(column))
return;
@ -1481,7 +1481,7 @@ static NSTextFieldCell *titleCell;
Returns NSZeroRect if the NSBrowser does not display its titles</p>
<p>See Also: -isTitled</p>
*/
- (NSRect) titleFrameOfColumn: (int)column
- (NSRect) titleFrameOfColumn: (NSInteger)column
{
// Not titled then no frame
if (!_isTitled)
@ -1491,8 +1491,8 @@ static NSTextFieldCell *titleCell;
else
{
// Number of columns over from the first
int nbColumn = column - _firstVisibleColumn;
int titleHeight = [self titleHeight];
NSInteger nbColumn = column - _firstVisibleColumn;
NSInteger titleHeight = [self titleHeight];
NSRect rect;
// Calculate origin
@ -1531,7 +1531,7 @@ static NSTextFieldCell *titleCell;
/** <p>Scrolls to make the column at index <var>column</var> visible.</p>
<p>See Also: -scrollColumnsRightBy: -scrollColumnsLeftBy:</p>
*/
- (void) scrollColumnToVisible: (int)column
- (void) scrollColumnToVisible: (NSInteger)column
{
// If its the last visible column then we are there already
if (_lastVisibleColumn < column)
@ -1547,7 +1547,7 @@ static NSTextFieldCell *titleCell;
/** <p>Scrolls columns left by <var>shiftAmount</var> columns.</p>
<p>See Also: -scrollColumnsRightBy: -scrollColumnToVisible:</p>
*/
- (void) scrollColumnsLeftBy: (int)shiftAmount
- (void) scrollColumnsLeftBy: (NSInteger)shiftAmount
{
// Cannot shift past the zero column
if ((_firstVisibleColumn - shiftAmount) < 0)
@ -1581,7 +1581,7 @@ static NSTextFieldCell *titleCell;
/** <p>Scrolls columns right by <var>shiftAmount</var> columns.</p>
<p>See Also: -scrollColumnsLeftBy: -scrollColumnToVisible:</p>
*/
- (void) scrollColumnsRightBy: (int)shiftAmount
- (void) scrollColumnsRightBy: (NSInteger)shiftAmount
{
// Cannot shift past the last loaded column
if ((shiftAmount + _lastVisibleColumn) > _lastColumnLoaded)
@ -1616,9 +1616,9 @@ static NSTextFieldCell *titleCell;
*/
- (void) updateScroller
{
int num = [self numberOfVisibleColumns];
NSInteger num = [self numberOfVisibleColumns];
float prop = (float)num / (float)(_lastColumnLoaded + 1);
int uc = ((_lastColumnLoaded + 1) - num); // Unvisible columns
NSInteger uc = ((_lastColumnLoaded + 1) - num); // Unvisible columns
float f_step = 1.0; // Knob moving step
float fv = 0.0;
@ -1765,11 +1765,11 @@ static NSTextFieldCell *titleCell;
*/
/** <p>Returns the rectangle containing the column at index column.</p> */
- (NSRect) frameOfColumn: (int)column
- (NSRect) frameOfColumn: (NSInteger)column
{
NSRect rect = NSZeroRect;
NSSize bezelBorderSize = [[GSTheme theme] sizeForBorderType: NSBezelBorder];
int n;
NSInteger n;
// Number of columns over from the first
n = column - _firstVisibleColumn;
@ -1828,7 +1828,7 @@ static NSTextFieldCell *titleCell;
/** Returns the rectangle containing the column at index column, */
// not including borders.
- (NSRect) frameOfInsideOfColumn: (int)column
- (NSRect) frameOfInsideOfColumn: (NSInteger)column
{
// xxx what does this one do?
return [self frameOfColumn: column];
@ -1862,7 +1862,7 @@ static NSTextFieldCell *titleCell;
- (void) tile
{
NSSize bezelBorderSize = [[GSTheme theme] sizeForBorderType: NSBezelBorder];
int i, num, columnCount, delta;
NSInteger i, num, columnCount, delta;
float frameWidth;
_columnSize.height = _frame.size.height;

View file

@ -238,9 +238,9 @@ typedef struct _GSButtonCellFlags
}
}
- (int) cellAttribute: (NSCellAttribute)aParameter
- (NSInteger) cellAttribute: (NSCellAttribute)aParameter
{
int value = 0;
NSInteger value = 0;
switch (aParameter)
{
@ -280,7 +280,7 @@ typedef struct _GSButtonCellFlags
return value;
}
- (void) setCellAttribute: (NSCellAttribute)aParameter to: (int)value
- (void) setCellAttribute: (NSCellAttribute)aParameter to: (NSInteger)value
{
switch (aParameter)
{

View file

@ -539,7 +539,7 @@ static NSColor *dtxtCol;
}
default:
{
NSWarnLog (@"cell attribute %d not supported", aParameter);
NSWarnLog (@"cell attribute %d not supported", (int)aParameter);
break;
}
}
@ -659,7 +659,7 @@ static NSColor *dtxtCol;
}
default:
{
NSWarnLog (@"cell attribute %d not supported", aParameter);
NSWarnLog (@"cell attribute %d not supported", (int)aParameter);
break;
}
}

View file

@ -1891,7 +1891,7 @@ static NSRecursiveLock *namedColorLock = nil;
else
{
[self release];
self = [c retain];
self = (GSNamedColor*)[c retain];
}
[namedColorLock unlock];
return self;

View file

@ -86,7 +86,7 @@ static NSColorList *themeColorList = nil;
if (self == [NSColorList class])
{
[self setVersion: 2];
_colorListLock = [NSRecursiveLock new];
_colorListLock = (NSLock *)[NSRecursiveLock new];
}
}

View file

@ -126,7 +126,7 @@ static GSComboWindow *gsWindow = nil;
}
- (id) initWithContentRect: (NSRect)contentRect
styleMask: (unsigned int)aStyle
styleMask: (NSUInteger)aStyle
backing: (NSBackingStoreType)bufferingType
defer: (BOOL)flag
{
@ -507,7 +507,7 @@ static GSComboWindow *gsWindow = nil;
}
// Browser delegate methods
- (int) browser: (NSBrowser *)sender numberOfRowsInColumn: (int)column
- (NSInteger) browser: (NSBrowser *)sender numberOfRowsInColumn: (NSInteger)column
{
if (_cell == nil)
return 0;
@ -517,8 +517,8 @@ static GSComboWindow *gsWindow = nil;
- (void) browser: (NSBrowser *)sender
willDisplayCell: (id)aCell
atRow: (int)row
column: (int)column
atRow: (NSInteger)row
column: (NSInteger)column
{
if (_cell == nil)
return;
@ -528,12 +528,12 @@ static GSComboWindow *gsWindow = nil;
}
// Table view data source methods
- (int) numberOfRowsInTableView: (NSTableView *)tv
- (NSInteger) numberOfRowsInTableView: (NSTableView *)tv
{
return [_cell numberOfItems];
}
- (id) tableView: (NSTableView *)tv objectValueForTableColumn: (NSTableColumn *)tc row: (int)row
- (id) tableView: (NSTableView *)tv objectValueForTableColumn: (NSTableColumn *)tc row: (NSInteger)row
{
return [_cell _stringValueAtIndex: row];
}
@ -551,7 +551,7 @@ static GSComboWindow *gsWindow = nil;
// Key actions methods
- (void) moveUpSelection
{
int index = [_tableView selectedRow] - 1;
NSInteger index = [_tableView selectedRow] - 1;
if (index > -1 && index < [_tableView numberOfRows])
{
@ -1666,8 +1666,8 @@ static inline NSRect buttonCellFrameFromRect(NSRect cellRect)
inView: (NSView *)controlView
editor: (NSText *)textObj
delegate: (id)anObject
start: (int)selStart
length: (int)selLength
start: (NSInteger)selStart
length: (NSInteger)selLength
{
[super selectWithFrame: textCellFrameFromRect(aRect)
inView: controlView

View file

@ -474,8 +474,8 @@ static NSNotificationCenter *nc;
}
- (void) setFloatingPointFormat: (BOOL)autoRange
left: (unsigned)leftDigits
right: (unsigned)rightDigits
left: (NSUInteger)leftDigits
right: (NSUInteger)rightDigits
{
[self abortEditing];
@ -762,7 +762,7 @@ static NSNotificationCenter *nc;
return NO;
}
- (int) sendActionOn: (int)mask
- (NSInteger) sendActionOn: (NSInteger)mask
{
return [_cell sendActionOn: mask];
}
@ -971,7 +971,7 @@ static NSNotificationCenter *nc;
the NSCell-trackMouse:inRect:ofView:untilMouseUp: method.</p>
<p>This is a NeXTStep 3.3 method, no longer officially supported.</p>
*/
- (int) mouseDownFlags
- (NSInteger) mouseDownFlags
{
return [[self selectedCell] mouseDownFlags];
}

View file

@ -790,7 +790,7 @@ static const char *eventTypes[] = {
if (version == 1)
{
// For the unlikely case that old events have been stored, convert them.
switch (event_type)
switch ((int)event_type)
{
case 0: event_type = NSLeftMouseDown; break;
case 1: event_type = NSLeftMouseUp; break;

View file

@ -266,7 +266,7 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0,
{
[familyBrowser selectRow: i inColumn: 0];
_family = i;
ASSIGN(_faceList, [fm availableMembersOfFontFamily: family]);
ASSIGN(_faceList, (NSMutableArray *)[fm availableMembersOfFontFamily: family]);
[faceBrowser loadColumnZero];
_face = -1;
}

View file

@ -1591,7 +1591,7 @@ destination point but not the content. */
/** Generic method to draw an image into a rect. The image is defined
by imageref, an opaque structure. Support for this method hasn't
been implemented yet, so it should not be used anywhere. */
- (void) GSDrawImage: (NSRect)rect: (void *)imageref
- (void) GSDrawImage: (NSRect)rect : (void *)imageref
{
[self subclassResponsibility: _cmd];
}

View file

@ -152,7 +152,7 @@
if (helpFile)
{
NSString *helpstr;
NSAttributedString *helpstr;
helpstr = [[NSAttributedString alloc] initWithPath: helpFile
documentAttributes: NULL];

View file

@ -130,7 +130,7 @@ static NSHelpPanel *_sharedPanel = nil;
}
- (id) initWithContentRect: (NSRect)contentRect
styleMask: (unsigned int)aStyle
styleMask: (NSUInteger)aStyle
backing: (NSBackingStoreType)bufferingType
defer: (BOOL)flag
{

View file

@ -3294,7 +3294,7 @@ static SEL getSel;
/**<p>Returns the column number of the selected cell or -1
if no cell is selected</p><p>See Also: -selectedRow -selectedCell</p>
*/
- (int) selectedColumn
- (NSInteger) selectedColumn
{
return _selectedColumn;
}
@ -3303,7 +3303,7 @@ static SEL getSel;
/**<p>Returns the row number of the selected cell or -1
if no cell is selected</p><p>See Also: -selectedColumn -selectedCell</p>
*/
- (int) selectedRow
- (NSInteger) selectedRow
{
return _selectedRow;
}

View file

@ -40,8 +40,8 @@
{
if((self = [super init]) != nil)
{
_binding = RETAIN([NSString stringWithString: @""]);
_keyPath = RETAIN([NSString stringWithString: @""]);
_binding = @"";
_keyPath = @"";
_options = RETAIN([NSMutableDictionary dictionary]);
}
return self;

View file

@ -911,7 +911,7 @@ static NSImage *unexpandable = nil;
/*
* Drawing
*/
- (void) drawRow: (int)rowIndex clipRect: (NSRect)aRect
- (void) drawRow: (NSInteger)rowIndex clipRect: (NSRect)aRect
{
int startingColumn;
int endingColumn;
@ -1533,8 +1533,8 @@ Also returns the child index relative to this parent. */
[self _autoloadExpandedItems];
}
- (void) editColumn: (int) columnIndex
row: (int) rowIndex
- (void) editColumn: (NSInteger) columnIndex
row: (NSInteger) rowIndex
withEvent: (NSEvent *) theEvent
select: (BOOL) flag
{

View file

@ -124,7 +124,7 @@ static NSPrintPanel *shared_instance = nil;
/* Designated initializer */
- (id) initWithContentRect: (NSRect)contentRect
styleMask: (unsigned int)aStyle
styleMask: (NSUInteger)aStyle
backing: (NSBackingStoreType)bufferingType
defer: (BOOL)flag
{

View file

@ -192,6 +192,7 @@
- (void) setRecentSearches: (NSArray *)searches
{
int max;
NSMutableArray *mutableSearches;
max = [self maximumRecents];
if ([searches count] > max)
@ -199,13 +200,14 @@
id buffer[max];
[searches getObjects: buffer range: NSMakeRange(0, max)];
searches = [NSMutableArray arrayWithObjects: buffer count: max];
mutableSearches = [[NSMutableArray alloc] initWithObjects: buffer count: max];
}
else
{
searches = [NSMutableArray arrayWithArray: searches];
mutableSearches = [[NSMutableArray alloc] initWithArray: searches];
}
ASSIGN(_recent_searches, searches);
[_recent_searches release];
_recent_searches = mutableSearches;
[self _saveSearches];
}
@ -377,8 +379,8 @@
inView: (NSView*)controlView
editor: (NSText*)textObject
delegate: (id)anObject
start: (int)selStart
length: (int)selLength
start: (NSInteger)selStart
length: (NSInteger)selLength
{
// constrain to visible text area
[super selectWithFrame: [self searchTextRectForBounds: aRect]

View file

@ -159,7 +159,7 @@ typedef struct _tableViewFlags
@end
@interface NSTableView (EventLoopHelper)
- (void) _trackCellAtColumn:(int)column row:(int)row withEvent:(NSEvent *)ev;
- (void) _trackCellAtColumn:(NSInteger)column row:(NSInteger)row withEvent:(NSEvent *)ev;
- (BOOL) _startDragOperationWithEvent:(NSEvent *)theEvent;
@end
@ -2093,12 +2093,12 @@ static void computeNewSelection
* Table Dimensions
*/
- (int) numberOfColumns
- (NSInteger) numberOfColumns
{
return _numberOfColumns;
}
- (int) numberOfRows
- (NSInteger) numberOfRows
{
return _numberOfRows;
}
@ -2163,7 +2163,7 @@ static void computeNewSelection
[self tile];
}
- (void) moveColumn: (int)columnIndex toColumn: (int)newIndex
- (void) moveColumn: (NSInteger)columnIndex toColumn: (NSInteger)newIndex
{
/* The range of columns which need to be shifted,
extremes included */
@ -2260,7 +2260,7 @@ static void computeNewSelection
NSDefaultMallocZone ()]);
}
- (int) columnWithIdentifier: (id)identifier
- (NSInteger) columnWithIdentifier: (id)identifier
{
NSEnumerator *enumerator = [_tableColumns objectEnumerator];
NSTableColumn *tb;
@ -2381,12 +2381,12 @@ static void computeNewSelection
return _target;
}
- (int) clickedColumn
- (NSInteger) clickedColumn
{
return _clickedColumn;
}
- (int) clickedRow
- (NSInteger) clickedRow
{
return _clickedRow;
}
@ -2395,7 +2395,7 @@ static void computeNewSelection
* The NSTableHeaderView calls this method when it receives a double click.
*/
- (void) _sendDoubleActionForColumn: (int)columnIndex
- (void) _sendDoubleActionForColumn: (NSInteger)columnIndex
{
_clickedColumn = columnIndex;
_clickedRow = -1;
@ -2410,7 +2410,7 @@ static void computeNewSelection
* However we support adding a distinct column with the control key (unlike
* Cocoa where the user can only make column range selection).
*/
- (void) _selectColumn: (int)columnIndex
- (void) _selectColumn: (NSInteger)columnIndex
modifiers: (unsigned int)modifiers
{
NSIndexSet *oldIndexes = [self selectedColumnIndexes];
@ -2569,12 +2569,12 @@ static void computeNewSelection
/*
* Selecting Columns and Rows
*/
- (void) selectColumn: (int)columnIndex
- (void) selectColumn: (NSInteger)columnIndex
byExtendingSelection: (BOOL)flag
{
if (columnIndex < 0 || columnIndex > _numberOfColumns)
{
NSDebugLLog(@"NSTableView", @"Column index %d out of table in selectColumn", columnIndex);
NSDebugLLog(@"NSTableView", @"Column index %d out of table in selectColumn", (int)columnIndex);
return;
}
@ -2641,12 +2641,12 @@ static void computeNewSelection
}
}
- (void) selectRow: (int)rowIndex
- (void) selectRow: (NSInteger)rowIndex
byExtendingSelection: (BOOL)flag
{
if (rowIndex < 0 || rowIndex >= _numberOfRows)
{
NSDebugLLog(@"NSTableView", @"Row index %d out of table in selectRow", rowIndex);
NSDebugLLog(@"NSTableView", @"Row index %d out of table in selectRow", (int)rowIndex);
return;
}
@ -2890,7 +2890,7 @@ byExtendingSelection: (BOOL)flag
return _selectedRows;
}
- (void) deselectColumn: (int)columnIndex
- (void) deselectColumn: (NSInteger)columnIndex
{
if ([_selectedColumns containsIndex: columnIndex] == NO)
{
@ -2950,7 +2950,7 @@ byExtendingSelection: (BOOL)flag
[self _postSelectionDidChangeNotification];
}
- (void) deselectRow: (int)rowIndex
- (void) deselectRow: (NSInteger)rowIndex
{
if ([_selectedRows containsIndex: rowIndex] == NO)
{
@ -3000,32 +3000,32 @@ byExtendingSelection: (BOOL)flag
[self _postSelectionDidChangeNotification];
}
- (int) numberOfSelectedColumns
- (NSInteger) numberOfSelectedColumns
{
return [_selectedColumns count];
}
- (int) numberOfSelectedRows
- (NSInteger) numberOfSelectedRows
{
return [_selectedRows count];
}
- (int) selectedColumn
- (NSInteger) selectedColumn
{
return _selectedColumn;
}
- (int) selectedRow
- (NSInteger) selectedRow
{
return _selectedRow;
}
- (BOOL) isColumnSelected: (int)columnIndex
- (BOOL) isColumnSelected: (NSInteger)columnIndex
{
return [_selectedColumns containsIndex: columnIndex];
}
- (BOOL) isRowSelected: (int)rowIndex
- (BOOL) isRowSelected: (NSInteger)rowIndex
{
return [_selectedRows containsIndex: rowIndex];
}
@ -3166,12 +3166,12 @@ byExtendingSelection: (BOOL)flag
return _gridColor;
}
- (void) setGridStyleMask: (unsigned int)gridType
- (void) setGridStyleMask: (NSTableViewGridLineStyle)gridType
{
// FIXME
}
- (unsigned int) gridStyleMask
- (NSTableViewGridLineStyle) gridStyleMask
{
// FIXME
return 0;
@ -3282,8 +3282,8 @@ byExtendingSelection: (BOOL)flag
}
}
- (void) editColumn: (int) columnIndex
row: (int) rowIndex
- (void) editColumn: (NSInteger) columnIndex
row: (NSInteger) rowIndex
withEvent: (NSEvent *) theEvent
select: (BOOL) flag
{
@ -3391,12 +3391,12 @@ byExtendingSelection: (BOOL)flag
return;
}
- (int) editedRow
- (NSInteger) editedRow
{
return _editedRow;
}
- (int) editedColumn
- (NSInteger) editedColumn
{
return _editedColumn;
}
@ -3429,8 +3429,8 @@ static inline float computePeriod(NSPoint mouseLocationWin,
return 0.01;
}
- (void) _trackCellAtColumn: (int) columnIndex
row: (int) rowIndex
- (void) _trackCellAtColumn: (NSInteger) columnIndex
row: (NSInteger) rowIndex
withEvent: (NSEvent *) theEvent
{
NSTableColumn *tb;
@ -4281,13 +4281,13 @@ static BOOL selectContiguousRegion(NSTableView *self,
* Layout
*/
- (NSRect) rectOfColumn: (int)columnIndex
- (NSRect) rectOfColumn: (NSInteger)columnIndex
{
NSRect rect;
if (columnIndex < 0 || columnIndex > _numberOfColumns)
{
NSDebugLLog(@"NSTableView", @"Column index %d out of table in rectOfColumn", columnIndex);
NSDebugLLog(@"NSTableView", @"Column index %d out of table in rectOfColumn", (int)columnIndex);
return NSZeroRect;
}
@ -4298,13 +4298,13 @@ static BOOL selectContiguousRegion(NSTableView *self,
return rect;
}
- (NSRect) rectOfRow: (int)rowIndex
- (NSRect) rectOfRow: (NSInteger)rowIndex
{
NSRect rect;
if (rowIndex < 0 || rowIndex >= _numberOfRows)
{
NSDebugLLog(@"NSTableView", @"Row index %d out of table in rectOfRow", rowIndex);
NSDebugLLog(@"NSTableView", @"Row index %d out of table in rectOfRow", (int)rowIndex);
return NSZeroRect;
}
@ -4376,7 +4376,7 @@ This method is deprecated, use -columnIndexesInRect:. */
return range;
}
- (int) columnAtPoint: (NSPoint)aPoint
- (NSInteger) columnAtPoint: (NSPoint)aPoint
{
if ((NSMouseInRect (aPoint, _bounds, YES)) == NO)
{
@ -4394,7 +4394,7 @@ This method is deprecated, use -columnIndexesInRect:. */
}
}
- (int) rowAtPoint: (NSPoint)aPoint
- (NSInteger) rowAtPoint: (NSPoint)aPoint
{
/* NB: Y coordinate system is flipped in NSTableView */
if ((NSMouseInRect (aPoint, _bounds, YES)) == NO)
@ -4416,8 +4416,8 @@ This method is deprecated, use -columnIndexesInRect:. */
}
}
- (NSRect) frameOfCellAtColumn: (int)columnIndex
row: (int)rowIndex
- (NSRect) frameOfCellAtColumn: (NSInteger)columnIndex
row: (NSInteger)rowIndex
{
NSRect frameRect;
@ -4973,7 +4973,7 @@ This method is deprecated, use -columnIndexesInRect:. */
* Drawing
*/
- (void) drawRow: (int)rowIndex clipRect: (NSRect)clipRect
- (void) drawRow: (NSInteger)rowIndex clipRect: (NSRect)clipRect
{
[[GSTheme theme] drawTableViewRow: rowIndex
clipRect: clipRect
@ -5020,7 +5020,7 @@ This method is deprecated, use -columnIndexesInRect:. */
* Scrolling
*/
- (void) scrollRowToVisible: (int)rowIndex
- (void) scrollRowToVisible: (NSInteger)rowIndex
{
if (_super_view != nil)
{
@ -5057,7 +5057,7 @@ This method is deprecated, use -columnIndexesInRect:. */
}
}
- (void) scrollColumnToVisible: (int)columnIndex
- (void) scrollColumnToVisible: (NSInteger)columnIndex
{
if (_super_view != nil)
{
@ -5346,7 +5346,7 @@ This method is deprecated, use -columnIndexesInRect:. */
dragImageOffset: offset];
}
- (void) setDropRow: (int)row
- (void) setDropRow: (NSInteger)row
dropOperation: (NSTableViewDropOperation)operation
{
if (row < -1 || row > _numberOfRows

View file

@ -175,18 +175,18 @@ Interface for a bunch of internal methods that need to be cleaned up.
NSParagraphStyle *paragraphStyle;
unsigned int flags;
NSColor *insertionColor;
NSArray *linkAttr;
NSArray *markAttr;
NSArray *selectedAttr;
NSDictionary *linkAttr;
NSDictionary *markAttr;
NSDictionary *selectedAttr;
NSTextView *textView;
}
- (NSColor *) backgroundColor;
- (NSParagraphStyle *) paragraphStyle;
- (unsigned int) flags;
- (NSColor *) insertionColor;
- (NSArray *) linkAttributes;
- (NSArray *) markAttributes;
- (NSArray *) selectedAttributes;
- (NSDictionary *) linkAttributes;
- (NSDictionary *) markAttributes;
- (NSDictionary *) selectedAttributes;
- (NSTextView *) textView;
@end
@ -289,17 +289,17 @@ Interface for a bunch of internal methods that need to be cleaned up.
return insertionColor;
}
- (NSArray *) linkAttributes
- (NSDictionary *) linkAttributes
{
return linkAttr;
}
- (NSArray *) markAttributes
- (NSDictionary *) markAttributes
{
return markAttr;
}
- (NSArray *) selectedAttributes
- (NSDictionary *) selectedAttributes
{
return selectedAttr;
}

View file

@ -1040,7 +1040,7 @@ many times.
// FIXME: This hack is here to work around a gorm decoding problem.
if (_windowNum)
{
NSLog(@"Window already initialized %d", _windowNum);
NSLog(@"Window already initialized %d", (int)_windowNum);
return self;
}
@ -3971,7 +3971,7 @@ resetCursorRectsForView(NSView *theView)
_frame.origin.x = (float)[theEvent data1];
_frame.origin.y = (float)[theEvent data2];
NSDebugLLog(@"Moving", @"Move event: %d %@",
_windowNum, NSStringFromPoint(_frame.origin));
(int)_windowNum, NSStringFromPoint(_frame.origin));
if (_autosaveName != nil)
{
[self saveFrameUsingName: _autosaveName];
@ -4083,7 +4083,7 @@ resetCursorRectsForView(NSView *theView)
}
if ([self canBecomeKeyWindow] == YES)
{
NSDebugLLog(@"Focus", @"Making %d key", _windowNum);
NSDebugLLog(@"Focus", @"Making %d key", (int)_windowNum);
[self makeKeyWindow];
[self makeMainWindow];
[NSApp activateIgnoringOtherApps: YES];

View file

@ -266,7 +266,7 @@ static id GSLaunched(NSNotification *notification, BOOL active)
@interface _GSWorkspaceCenter: NSNotificationCenter
{
NSDistributedNotificationCenter *remote;
NSNotificationCenter *remote;
}
- (void) _handleRemoteNotification: (NSNotification*)aNotification;
- (void) _postLocal: (NSString*)name userInfo: (NSDictionary*)info;

View file

@ -1091,7 +1091,6 @@ validateService(NSDictionary *service, NSString *path, unsigned pos)
while (i-- > 0)
{
NSString *type;
str = [snd objectAtIndex: i];
/* For UNIX I/O or file mapping, the send type must be a