Replace some occurences of int with NSInteger

and unsigned with NSUInteger. This allows to recompile gui on 
64 bit systems after the change to NSNotFound in base.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34312 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2011-12-17 17:16:09 +00:00
parent d648b7ca14
commit ccf59ac3ca
35 changed files with 248 additions and 214 deletions

View file

@ -449,20 +449,20 @@ typedef struct _GSButtonCellFlags
return @"";
}
- (unsigned)alternateMnemonicLocation
- (NSUInteger)alternateMnemonicLocation
{
// TODO
return NSNotFound;
}
- (void)setAlternateMnemonicLocation:(unsigned)location
- (void)setAlternateMnemonicLocation:(NSUInteger)location
{
// TODO
}
- (void)setAlternateTitleWithMnemonic:(NSString *)aString
{
unsigned int location = [aString rangeOfString: @"&"].location;
NSUInteger location = [aString rangeOfString: @"&"].location;
[self setAlternateTitle: [aString stringByReplacingString: @"&"
withString: @""]];
@ -616,7 +616,7 @@ typedef struct _GSButtonCellFlags
0.</p><p>See Also: -setKeyEquivalentModifierMask:
-keyEquivalent [NSButton-performKeyEquivalent:]</p>
*/
- (unsigned int) keyEquivalentModifierMask
- (NSUInteger) keyEquivalentModifierMask
{
return _keyEquivalentModifierMask;
}
@ -639,7 +639,7 @@ typedef struct _GSButtonCellFlags
<p>See Also: -keyEquivalentModifierMask
-setKeyEquivalent: [NSButton-performKeyEquivalent:]</p>
*/
- (void) setKeyEquivalentModifierMask: (unsigned int)mask
- (void) setKeyEquivalentModifierMask: (NSUInteger)mask
{
_keyEquivalentModifierMask = mask;
}
@ -738,7 +738,7 @@ typedef struct _GSButtonCellFlags
NSChangeBackgroundCellMask</p>
<p>See Also : -setHighlightsBy:</p>
*/
- (int) highlightsBy
- (NSInteger) highlightsBy
{
return _highlightsByMask;
}
@ -748,12 +748,12 @@ typedef struct _GSButtonCellFlags
NSChangeBackgroundCellMask</p>
<p>See Also : -highlightsBy</p>
*/
- (void) setHighlightsBy: (int)mask
- (void) setHighlightsBy: (NSInteger)mask
{
_highlightsByMask = mask;
}
- (void) setShowsStateBy: (int)mask
- (void) setShowsStateBy: (NSInteger)mask
{
_showAltStateMask = mask;
}
@ -819,7 +819,7 @@ typedef struct _GSButtonCellFlags
}
}
- (int) showsStateBy
- (NSInteger) showsStateBy
{
return _showAltStateMask;
}