[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBundle -initWithPath: warning

From: David Ayers
Subject: Re: NSBundle -initWithPath: warning
Date: Fri, 01 Apr 2005 12:47:11 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217

Richard Frith-Macdonald wrote:

On 2005-04-01 10:30:26 +0100 David Ayers <d.ayers@inode.at> wrote:

Sheldon Gill wrote:

Why is the code checking for an absolute path? It is superfluous
and is more likely to cause problems than solve them.

I kind of agree that this seems superfluous.  If there is a reason,
we need some documentation.

The check is not superfluous ... and is already documented both in
the Apple documentation and in the GNUstep base documentation.

My bad! Indeed, now I recall it, but I should have checked again before replying anyway.

However, the behavior as a result of the check is undocumented ...
though it should be of course.  Reading the documentation
conservatively/literally I think that the code should return nil as a
result of the check ... however GNUstep has a history of being
permissive, and the current automatic conversion from relative to
absolute path might be considered a good thing.  Certainly we should
not be stricter is MacOS-X is not.  I will test the behavior on
MacOS-X and make the GNUstep behavior strict if MacOS-X is strict.

Sounds good to me.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]