mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
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:
parent
5f38a6f9dc
commit
1591ac2093
7 changed files with 19 additions and 14 deletions
|
@ -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>
|
Tue Jul 13 17:08:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
* Source/NSUser.m: Implemented NSStandardApplicationPaths(),
|
* Source/NSUser.m: Implemented NSStandardApplicationPaths(),
|
||||||
|
|
|
@ -45,7 +45,7 @@ ADDITIONAL_OBJCFLAGS = -g
|
||||||
ADDITIONAL_CFLAGS =
|
ADDITIONAL_CFLAGS =
|
||||||
|
|
||||||
# Additional include directories the compiler should search
|
# 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)
|
-I../Source/$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)
|
||||||
|
|
||||||
# Additional LDFLAGS to pass to the linker
|
# Additional LDFLAGS to pass to the linker
|
||||||
|
|
|
@ -48,7 +48,7 @@ main (int argc, char *argv[])
|
||||||
[dict setObject: name forKey: [detail timeZoneAbbreviation]];
|
[dict setObject: name forKey: [detail timeZoneAbbreviation]];
|
||||||
e = [dict keyEnumerator];
|
e = [dict keyEnumerator];
|
||||||
while ((abbrev = [e nextObject]) != nil)
|
while ((abbrev = [e nextObject]) != nil)
|
||||||
printf("%@\t%@\n", abbrev, name);
|
NSLog(@"%@\t%@\n", abbrev, name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
e = [zones[i] objectEnumerator];
|
e = [zones[i] objectEnumerator];
|
||||||
while ((name = [e nextObject]) != nil)
|
while ((name = [e nextObject]) != nil)
|
||||||
printf("%d %@\n", i, name);
|
NSLog(@"%d %@\n", i, name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,10 +12,10 @@ main ()
|
||||||
id detail;
|
id detail;
|
||||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||||
|
|
||||||
printf("time zones for PST:\n%@\n",
|
NSLog(@"time zones for PST:\n%@\n",
|
||||||
[[[NSTimeZone abbreviationMap] objectForKey: @"PST"] description]);
|
[[[NSTimeZone abbreviationMap] objectForKey: @"PST"] description]);
|
||||||
printf("time zones:\n%@\n", [[NSTimeZone timeZoneArray] description]);
|
NSLog(@"time zones:\n%@\n", [[NSTimeZone timeZoneArray] description]);
|
||||||
printf("local time zone:\n%@\n", [[NSTimeZone localTimeZone] description]);
|
NSLog(@"local time zone:\n%@\n", [[NSTimeZone localTimeZone] description]);
|
||||||
[arp release];
|
[arp release];
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -229,7 +229,7 @@
|
||||||
- (NSConnection*) connection: ancestor didConnect: newConn
|
- (NSConnection*) connection: ancestor didConnect: newConn
|
||||||
{
|
{
|
||||||
printf("%s\n", sel_get_name(_cmd));
|
printf("%s\n", sel_get_name(_cmd));
|
||||||
[NSNotificationCenter
|
[[NSNotificationCenter defaultCenter]
|
||||||
addObserver: self
|
addObserver: self
|
||||||
selector: @selector(connectionBecameInvalid:)
|
selector: @selector(connectionBecameInvalid:)
|
||||||
name: NSConnectionDidDieNotification
|
name: NSConnectionDidDieNotification
|
||||||
|
@ -258,7 +258,7 @@ int main(int argc, char *argv[])
|
||||||
withRootObject:l];
|
withRootObject:l];
|
||||||
else
|
else
|
||||||
c = [NSConnection newRegisteringAtName:@"test2server" withRootObject:l];
|
c = [NSConnection newRegisteringAtName:@"test2server" withRootObject:l];
|
||||||
[NSNotificationCenter
|
[[NSNotificationCenter defaultCenter]
|
||||||
addObserver: l
|
addObserver: l
|
||||||
selector: @selector(connectionBecameInvalid:)
|
selector: @selector(connectionBecameInvalid:)
|
||||||
name: NSConnectionDidDieNotification
|
name: NSConnectionDidDieNotification
|
||||||
|
|
|
@ -8,9 +8,9 @@ id announce_new_connection (id notification)
|
||||||
{
|
{
|
||||||
id in_port = [notification object];
|
id in_port = [notification object];
|
||||||
id out_port = [notification userInfo];
|
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]);
|
[out_port description], [in_port description]);
|
||||||
printf ("Now servicing %d connection(s).\n",
|
NSLog (@"Now servicing %d connection(s).\n",
|
||||||
[in_port numberOfConnectedOutPorts]);
|
[in_port numberOfConnectedOutPorts]);
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
@ -19,9 +19,9 @@ id announce_broken_connection (id notification)
|
||||||
{
|
{
|
||||||
id in_port = [notification object];
|
id in_port = [notification object];
|
||||||
id out_port = [notification userInfo];
|
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]);
|
[out_port description], [in_port description]);
|
||||||
printf ("Now servicing %d connection(s).\n",
|
NSLog (@"Now servicing %d connection(s).\n",
|
||||||
[in_port numberOfConnectedOutPorts]);
|
[in_port numberOfConnectedOutPorts]);
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
@ -58,12 +58,12 @@ int main (int argc, char *argv[])
|
||||||
else
|
else
|
||||||
port = [TcpInPort newForReceivingFromRegisteredName: @"tcpport-test"];
|
port = [TcpInPort newForReceivingFromRegisteredName: @"tcpport-test"];
|
||||||
|
|
||||||
[NotificationDispatcher
|
[NSNotificationCenter
|
||||||
addInvocation: [[ObjectFunctionInvocation alloc]
|
addInvocation: [[ObjectFunctionInvocation alloc]
|
||||||
initWithObjectFunction: announce_broken_connection]
|
initWithObjectFunction: announce_broken_connection]
|
||||||
name: InPortClientBecameInvalidNotification
|
name: InPortClientBecameInvalidNotification
|
||||||
object: port];
|
object: port];
|
||||||
[NotificationDispatcher
|
[NSNotificationCenter
|
||||||
addInvocation: [[ObjectFunctionInvocation alloc]
|
addInvocation: [[ObjectFunctionInvocation alloc]
|
||||||
initWithObjectFunction: announce_new_connection]
|
initWithObjectFunction: announce_new_connection]
|
||||||
name: InPortAcceptedClientNotification
|
name: InPortAcceptedClientNotification
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue