|
From: | Sergey Golovin |
Subject: | [bug #30548] [NSBundle bundleForClass:] doesn't work for framework libraries |
Date: | Mon, 26 Jul 2010 07:41:08 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.7) Gecko/20100715 Ubuntu/9.10 (karmic) Firefox/3.6.7 |
URL: <http://savannah.gnu.org/bugs/?30548> Summary: [NSBundle bundleForClass:] doesn't work for framework libraries Project: GNUstep Submitted by: svg Submitted on: Пнд 26 Июл 2010 11:41:08 Category: Base/Foundation Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: Suppose the class "A" different from the framework principal one is embeded in the library belonging to a framework. In this case [NSBundle bundleForClass:[A class]] doesn't return the framework bundle. It only works for the principal class. The attached file contains the test case. Step to reproduce $ tar xjf framework2.tar.bz2 $ cd framework2 $ make $ cd unit $ make $ ./testcase.sh 2010-07-26 11:25:20.783 testcase[14085] File NSBundle.m: 1288. In -[NSBundle initWithPath:] NSBundle -initWithPath: requires absolute path names, given '../testFramework.framework' 2010-07-26 11:25:20.784 testcase[14085] Result: /home/svg/src/tests/framework2/unit/Resources/testcase but the line with 'Result' should be the path to the bundle testFramework.framework. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Пнд 26 Июл 2010 11:41:08 Name: framework2.tar.bz2 Size: 998B By: svg <http://savannah.gnu.org/bugs/download.php?file_id=21068> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?30548> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |