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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitted by:  Chris Armstrong <carmstrong>
Submitted on:  Mon 02 Jan 2006 04:26:00 AM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Gregory John Casamento <gcasa>
Open/Closed: Closed

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 6 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 12 Jan 2006 02:36:18 AM UTCgcasaStatusReady For Test=>Fixed
  Open/ClosedIn Test=>Closed
Mon 09 Jan 2006 11:31:00 AM UTCgcasaStatusIn Progress=>Ready For Test
  Open/ClosedOpen=>In Test
Mon 02 Jan 2006 05:07:00 PM UTCgcasaStatusNone=>In Progress
  Assigned toNone=>gcasa

Back to the top


Powered by Savane 3.1-cleanup1