Minor fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4582 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 1999-07-14 14:25:02 +00:00
parent de84940c66
commit 6710be255a
7 changed files with 19 additions and 14 deletions

View file

@ -1,3 +1,8 @@
Wed Jul 14 10:32:17 1999 Adam Fedor <fedor@ultra.doc.com>
* Testing/Makefile.preamble: Fix include path the headers.
Other testing fixes
Tue Jul 13 17:08:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSUser.m: Implemented NSStandardApplicationPaths(),

View file

@ -45,7 +45,7 @@ ADDITIONAL_OBJCFLAGS = -g
ADDITIONAL_CFLAGS =
# Additional include directories the compiler should search
ADDITIONAL_INCLUDE_DIRS = -I../Source -I../Source/srcdir-include \
ADDITIONAL_INCLUDE_DIRS = -I../Headers/gnustep -I../Headers \
-I../Source/$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)
# Additional LDFLAGS to pass to the linker

View file

@ -48,7 +48,7 @@ main (int argc, char *argv[])
[dict setObject: name forKey: [detail timeZoneAbbreviation]];
e = [dict keyEnumerator];
while ((abbrev = [e nextObject]) != nil)
printf("%@\t%@\n", abbrev, name);
NSLog(@"%@\t%@\n", abbrev, name);
}
}

View file

@ -83,7 +83,7 @@ main (int argc, char *argv[])
{
e = [zones[i] objectEnumerator];
while ((name = [e nextObject]) != nil)
printf("%d %@\n", i, name);
NSLog(@"%d %@\n", i, name);
}
}

View file

@ -12,10 +12,10 @@ main ()
id detail;
NSAutoreleasePool *arp = [NSAutoreleasePool new];
printf("time zones for PST:\n%@\n",
NSLog(@"time zones for PST:\n%@\n",
[[[NSTimeZone abbreviationMap] objectForKey: @"PST"] description]);
printf("time zones:\n%@\n", [[NSTimeZone timeZoneArray] description]);
printf("local time zone:\n%@\n", [[NSTimeZone localTimeZone] description]);
NSLog(@"time zones:\n%@\n", [[NSTimeZone timeZoneArray] description]);
NSLog(@"local time zone:\n%@\n", [[NSTimeZone localTimeZone] description]);
[arp release];
return 0;
}

View file

@ -229,7 +229,7 @@
- (NSConnection*) connection: ancestor didConnect: newConn
{
printf("%s\n", sel_get_name(_cmd));
[NSNotificationCenter
[[NSNotificationCenter defaultCenter]
addObserver: self
selector: @selector(connectionBecameInvalid:)
name: NSConnectionDidDieNotification
@ -258,7 +258,7 @@ int main(int argc, char *argv[])
withRootObject:l];
else
c = [NSConnection newRegisteringAtName:@"test2server" withRootObject:l];
[NSNotificationCenter
[[NSNotificationCenter defaultCenter]
addObserver: l
selector: @selector(connectionBecameInvalid:)
name: NSConnectionDidDieNotification

View file

@ -8,9 +8,9 @@ id announce_new_connection (id notification)
{
id in_port = [notification object];
id out_port = [notification userInfo];
printf ("{%@}\n\tconnected to\n\t{%@}\n",
NSLog (@"{%@}\n\tconnected to\n\t{%@}\n",
[out_port description], [in_port description]);
printf ("Now servicing %d connection(s).\n",
NSLog (@"Now servicing %d connection(s).\n",
[in_port numberOfConnectedOutPorts]);
return nil;
}
@ -19,9 +19,9 @@ id announce_broken_connection (id notification)
{
id in_port = [notification object];
id out_port = [notification userInfo];
printf ("{%@}\n\tdisconnected from\n\t{%@}\n",
NSLog (@"{%@}\n\tdisconnected from\n\t{%@}\n",
[out_port description], [in_port description]);
printf ("Now servicing %d connection(s).\n",
NSLog (@"Now servicing %d connection(s).\n",
[in_port numberOfConnectedOutPorts]);
return nil;
}
@ -58,12 +58,12 @@ int main (int argc, char *argv[])
else
port = [TcpInPort newForReceivingFromRegisteredName: @"tcpport-test"];
[NotificationDispatcher
[NSNotificationCenter
addInvocation: [[ObjectFunctionInvocation alloc]
initWithObjectFunction: announce_broken_connection]
name: InPortClientBecameInvalidNotification
object: port];
[NotificationDispatcher
[NSNotificationCenter
addInvocation: [[ObjectFunctionInvocation alloc]
initWithObjectFunction: announce_new_connection]
name: InPortAcceptedClientNotification