mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
Some tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7456 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
122b12a894
commit
0deff55b4e
3 changed files with 13 additions and 7 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2000-09-08 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSAttributedString.m: Make -description produce output in
|
||||||
|
same format as MacOS-X
|
||||||
|
* Source/NSDistributedNotificationCenter.m: update method return
|
||||||
|
types for macOS-X complience.
|
||||||
|
* Headers/base/NSDistributedNotificationCenter.h: ditto.
|
||||||
|
|
||||||
2000-09-08 Richard Frith-Macdonald <rfm@gnu.org>
|
2000-09-08 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSGString.m: Removed obsolete methods and added range checks.
|
* Source/NSGString.m: Removed obsolete methods and added range checks.
|
||||||
|
|
|
@ -41,14 +41,14 @@ typedef enum {
|
||||||
|
|
||||||
GS_EXPORT NSString *NSLocalNotificationCenterType;
|
GS_EXPORT NSString *NSLocalNotificationCenterType;
|
||||||
|
|
||||||
@interface NSDistributedNotificationCenter : NSObject
|
@interface NSDistributedNotificationCenter : NSNotificationCenter
|
||||||
{
|
{
|
||||||
NSRecursiveLock *_centerLock; /* For thread safety. */
|
NSRecursiveLock *_centerLock; /* For thread safety. */
|
||||||
id _remote; /* Proxy for center. */
|
id _remote; /* Proxy for center. */
|
||||||
BOOL _suspended; /* Is delivery suspended? */
|
BOOL _suspended; /* Is delivery suspended? */
|
||||||
}
|
}
|
||||||
+ (id) defaultCenter;
|
+ (NSNotificationCenter*) defaultCenter;
|
||||||
+ (id) notificationCenterForType: (NSString*)type;
|
+ (NSNotificationCenter*) notificationCenterForType: (NSString*)type;
|
||||||
|
|
||||||
- (void) addObserver: (id)anObserver
|
- (void) addObserver: (id)anObserver
|
||||||
selector: (SEL)aSelector
|
selector: (SEL)aSelector
|
||||||
|
|
|
@ -190,14 +190,12 @@ static Class NSMutableAttributedString_concrete_class;
|
||||||
NSDictionary *attrs;
|
NSDictionary *attrs;
|
||||||
NSMutableString *desc;
|
NSMutableString *desc;
|
||||||
|
|
||||||
desc = AUTORELEASE([[super description] mutableCopy]);
|
desc = [[NSMutableString alloc] init];
|
||||||
[desc appendFormat: @" Length: %u", length];
|
|
||||||
while (index < length &&
|
while (index < length &&
|
||||||
(attrs = [self attributesAtIndex: index effectiveRange: &r]) != nil)
|
(attrs = [self attributesAtIndex: index effectiveRange: &r]) != nil)
|
||||||
{
|
{
|
||||||
index = NSMaxRange(r);
|
index = NSMaxRange(r);
|
||||||
[desc appendFormat: @"\nRange: %@ Chars:'%@' Attrs: %@",
|
[desc appendFormat: @"%@%@", [string substringFromRange: r], attrs];
|
||||||
NSStringFromRange(r), [string substringFromRange: r], attrs];
|
|
||||||
}
|
}
|
||||||
return desc;
|
return desc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue