Change tag to NSInteger.

Patch by Anibal Rindisbacher <anibal784@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30026 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2010-03-23 21:26:24 +00:00
parent ff5d0e7c13
commit 9f4fd26405
12 changed files with 42 additions and 27 deletions

View file

@ -1,3 +1,18 @@
2010-03-23 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/NSUserInterfaceValidation.h
* Headers/AppKit/NSControl.h
* Headers/AppKit/NSMenuItem.h
* Headers/AppKit/NSCell.h
* Headers/AppKit/NSView.h
* Source/NSActionCell.m
* Source/NSControl.m
* Source/NSMenuItem.m
* Source/NSSegmentedCell.m
* Source/NSCell.m
* Source/NSView.m: Change tag to NSInteger.
Patch by Anibal Rindisbacher <anibal784@gmail.com>.
2010-03-23 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTextContainer.m (-replaceLayoutManager:): Retain the

View file

@ -304,8 +304,8 @@ enum {
//
// Assigning a Tag
//
- (void)setTag:(int)anInt;
- (int)tag;
- (void)setTag:(NSInteger)anInt;
- (NSInteger)tag;
//
// Formatting Data and Validating Input

View file

@ -47,7 +47,7 @@
@interface NSControl : NSView
{
// Attributes
int _tag;
NSInteger _tag;
id _cell; // id so compiler wont complain too much for subclasses
BOOL _ignoresMultiClick;
}
@ -70,7 +70,7 @@
// Identifying the Selected Cell
//
- (id)selectedCell;
- (int)selectedTag;
- (NSInteger)selectedTag;
//
// Setting the Control's Value
@ -166,8 +166,8 @@
//
// Assigning a Tag
//
- (void)setTag:(int)anInt;
- (int)tag;
- (void)setTag:(NSInteger)anInt;
- (NSInteger)tag;
//
// Activation

View file

@ -293,7 +293,7 @@
Sets the tag of the reciever as <var>anInt</var>.
</p>
*/
- (void) setTag: (int)anInt;
- (void) setTag: (NSInteger)anInt;
/**
<p>
@ -332,7 +332,7 @@
Returns the tag of the receiver.
</p>
*/
- (int) tag;
- (NSInteger) tag;
/**
<p>

View file

@ -35,7 +35,7 @@
@protocol NSValidatedUserInterfaceItem
- (SEL)action;
- (int)tag;
- (NSInteger)tag;
@end
@protocol NSUserInterfaceValidations

View file

@ -194,8 +194,8 @@ typedef enum _NSFocusRingType {
/*
* Assigning a Tag
*/
- (int) tag;
- (id) viewWithTag: (int)aTag;
- (NSInteger) tag;
- (id) viewWithTag: (NSInteger)aTag;
/*
* Modifying the Frame Rectangle

View file

@ -307,7 +307,7 @@ static Class controlClass;
/**
* Assigning a Tag.
*/
- (void) setTag: (int)anInt
- (void) setTag: (NSInteger)anInt
{
_tag = anInt;
}
@ -315,7 +315,7 @@ static Class controlClass;
/**
* Return the tag.
*/
- (int) tag
- (NSInteger) tag
{
return _tag;
}

View file

@ -1207,7 +1207,7 @@ static NSColor *dtxtCol;
The NSCell implementation raises an NSInvalidArgumentException.</p>
<p>See Also: -tag</p>
*/
- (void) setTag: (int)anInt
- (void) setTag: (NSInteger)anInt
{
[NSException raise: NSInternalInconsistencyException
format: @"attempt to set a tag in an NSCell"];
@ -1216,7 +1216,7 @@ static NSColor *dtxtCol;
/**<p>Implemented by subclasses to Return the tag.
The NSCell implementation returns -1 </p><p>See Also: -setTag:</p>
*/
- (int) tag
- (NSInteger) tag
{
return -1;
}

View file

@ -168,7 +168,7 @@ static NSNotificationCenter *nc;
/** <p>Returns the tag of the NSControl's selected cell (if exists).
-1 otherwise.</p><p>See Also: [NSCell-tag]</p>
*/
- (int) selectedTag
- (NSInteger) selectedTag
{
NSCell *selected = [self selectedCell];
@ -784,7 +784,7 @@ static NSNotificationCenter *nc;
/** Assigning a Tag
*/
- (void) setTag: (int)anInt
- (void) setTag: (NSInteger)anInt
{
_tag = anInt;
}
@ -792,7 +792,7 @@ static NSNotificationCenter *nc;
/**<p>Returns the NSControl tag</p>
<p>See Also: -setTag:</p>
*/
- (int) tag
- (NSInteger) tag
{
return _tag;
}

View file

@ -411,12 +411,12 @@ static Class imageClass;
return _action;
}
- (void) setTag: (int)anInt
- (void) setTag: (NSInteger)anInt
{
_tag = anInt;
}
- (int) tag
- (NSInteger) tag
{
return _tag;
}

View file

@ -40,7 +40,7 @@
{
BOOL _selected;
BOOL _enabled;
int _tag;
NSInteger _tag;
float _width;
NSMenu *_menu;
NSString *_label;
@ -61,8 +61,8 @@
- (void) setToolTip: (NSString *)toolTip;
- (NSImage *) image;
- (void) setImage: (NSImage *)image;
- (int) tag;
- (void) setTag: (int)tag;
- (NSInteger) tag;
- (void) setTag: (NSInteger)tag;
- (float) width;
- (void) setWidth: (float)width;
- (NSRect) frame;
@ -150,12 +150,12 @@
ASSIGN(_image, image);
}
- (int) tag
- (NSInteger) tag
{
return _tag;
}
- (void) setTag: (int)tag
- (void) setTag: (NSInteger)tag
{
_tag = tag;
}

View file

@ -3215,7 +3215,7 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
return nil;
}
- (id) viewWithTag: (int)aTag
- (id) viewWithTag: (NSInteger)aTag
{
NSView *view = nil;
@ -4743,7 +4743,7 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
return _rFlags.needs_display;
}
- (int) tag
- (NSInteger) tag
{
return -1;
}