URL:
<http://savannah.gnu.org/bugs/?34468>
Summary: -[NSBundle URLForResource*] methods bugged
Project: GNUstep
Submitted by: julian_
Submitted on: Mo 03 Okt 2011 20:29:26 GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
-[NSBundle URLForResource*] return the path to the directory where the main
bundle resides instead of "nil" for resources that don't exist.
of course nil should be returned for inexistent resources
the root of the bug is that [NSURL fileURLWithPath] in the expectation that it
would return nil for a nil path but that isn't true
trivial patch attached
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mo 03 Okt 2011 20:29:26 GMT Name: fix.diff Size: 813B By: julian_
<http://savannah.gnu.org/bugs/download.php?file_id=24090>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34468>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep