bug-gnustep
[Top][All Lists]
Advanced

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

[bug #34468] -[NSBundle URLForResource*] methods bugged


From: julian
Subject: [bug #34468] -[NSBundle URLForResource*] methods bugged
Date: Mon, 03 Oct 2011 20:29:27 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50

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/




reply via email to

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