Re: PATCH: NSPathUtilities etc

2004-03-15 Thread Richard Frith-Macdonald
On 11 Mar 2004, at 01:06, Sheldon Gill wrote: I don't like having to use configure everything I want to change some behaviour option or default location for something _within_ the library. For example, my patch makes PLATFORM_SUPPORT an optional thing. Should you have to re-run configure to

Re: PATCH: NSPathUtilities etc

2004-03-15 Thread Richard Frith-Macdonald
On 8 Mar 2004, at 23:11, Sheldon Gill wrote: On Fri, 5 Mar 2004 09:30, Alexander Malmberg wrote: [snip] NSTemporaryDirectory has been implemented and _documented_ as returning a secure, this-user-only directory for a long time. Both code in GNUstep and outside GNUstep depends on this. Changing

[patch] Make NSTemporaryDirectory more secure

2004-03-15 Thread Alexander Malmberg
Hi, This patch should fix some of the security issues raised in recent discussions of this function: * It makes NSTemporaryDirectory raise an exception if a suitable directory can't be found/created (and documents this, of course :). * In addition to checking that the permissions are 0600 or

Re: NSNotificationCenter throws exception in removeObserver

2004-03-15 Thread Wim Oudshoorn
Adam Fedor [EMAIL PROTECTED] writes: On Mar 8, 2004, at 9:02 AM, Wim Oudshoorn wrote: The following code will throw an NSInvalidArgumentException [[NSNotificationCenter defaultCenter] removeObserver: nil] The same code on WO4.5 YellowBox and MacOSX 10.3 will not throw an exception. So I

Re: Fix, NSLayoutManager

2004-03-15 Thread Georg Fleischmann
Alexander Malmberg wrote: However, in the original patch, the wrap-around is just ugly; it isn't really a problem since the wrap-around behavior of unsigned ints is defined by the c standard. It may not please the educated eye, but it works :-) Also, the patch doesn't need a cast which would