bugGNUstep - Bugs: bug #15348, Failure when using -[NSNib...

Group
 
 

bug #15348: Failure when using -[NSNib initWithNibNamed:bundle:]

Submitter:  Chris Armstrong <carmstrong>
Submitted:  Mon 02 Jan 2006 04:26:00 AM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  gcasa
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 12 Jan 2006 02:37:12 AM UTC, comment #4: 

Sorry, haven't had a chance to test this yet. Been away from GNUstep for a little while

Anonymous
Thu 12 Jan 2006 02:35:19 AM UTC, comment #3: 

No response, assuming this is working for everyone else too. :)  Please reopen, if there is a problem.  GJC

Gregory John Casamento <gcasa>
Group administrator
Mon 09 Jan 2006 11:31:00 AM UTC, comment #2: 

Corrected in CVS.  Please test and let me know if this corrects the issue for you.

Thanks.

Gregory John Casamento <gcasa>
Group administrator
Mon 02 Jan 2006 05:07:00 PM UTC, comment #1: 

I am currently looking into this, thanks for the report.

Gregory John Casamento <gcasa>
Group administrator
Mon 02 Jan 2006 04:26:00 AM UTC, original submission:  

I'm thinking no one's ever used this method before.

I'm running the following code:

  NSNib* myNib = [[NSNib alloc] initWithNibNamed:@"imageviewdemo" bundle:[NSBundle mainBundle]];
  [myNib instantiateNibWithOwner:[ImageController new] topLevelObjects:NULL];

and getting the following error message:

2006-01-02 15:19:48.418 imageviewdemo[17777] File NSData.m: 166. In readContentsOfFile Open /home/chris/DOCS/AppKit/imageviewdemo/imageviewdemo.debug/Resources/English.lproj/imageviewdemo.gorm/imageviewdemo) attempt failed - No such file or directory

this is the wrong path for the "objects.gorm" file it should be getting at. A check of the source code reveals that it builds the path name using the "nibNamed" variable as follows:

[path to resource directory]/[nibNamed].gorm/[nibNamed]

This is incorrect, as such a file does not exist. I think we change line 181 from:

fileName = [bundlePath stringByAppendingPathComponent: nibNamed];

to

fileName = [bundlePath stringByAppendingString:@"objects.gorm"];

Or whatever this is supposed to be (I could be wrong, but this doesn't work on my machine.

Chris Armstrong <carmstrong>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 6 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-01-12 gcasa StatusReady For Test Fixed
    Open/ClosedIn Test Closed
2006-01-09 gcasa StatusIn Progress Ready For Test
    Open/ClosedOpen In Test
2006-01-02 gcasa StatusNone In Progress
    Assigned toNone gcasa

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code