bugGNUstep - Bugs: bug #25004, NSWindowontroller -initWithCoder...

 
 

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

bug #25004: NSWindowontroller -initWithCoder fails for NSKeyedUnarchivers/ NSKeyedUnarchiver doesn't implement -versionForClassName

Submitted by:  Niels Grewe <thebeing>
Submitted on:  Wed 03 Dec 2008 04:01:12 PM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon 08 Dec 2008 09:05:05 AM UTC, comment #2:

method implemented.

Richard Frith-Macdonald <CaS>
Project Member
Sun 07 Dec 2008 09:25:31 PM UTC, comment #1:

I justed fixed the first part of this bug report. NSWindowContoller initWithCoder: should now work with a keyed coder. What needs to be added is an implementation of versionForClassName for NSKeyedUnarchiver. I think this method should return back 0 for all classes.

Fred Kiefer <FredKiefer>
Project Member
Wed 03 Dec 2008 04:01:12 PM UTC, original submission:

Hi,

I recently stumbled upon the following problem, which probably needs some attention:
Since rev 26959 the -initWithCoder method of NSWindowController calls the -versionForClassName method of the coder. This approach fails if the coder is a NSKeyedUnarchiver, which doesn't implement the -versionForClassName method. Since NSCoder declares this method a subclassResponsibility, decoding nibs can sometimes raise an exception. As is the case with the MainMenu.nib of the StepChat application from the Étoilé project (http://svn.gna.org/svn/etoile/trunk/Etoile/Services/User/Jabber/English.lproj/MainMenu.nib).

best regards

Niels

Niels Grewe <thebeing>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by FredKiefer (Posted a comment)
  • -unavailable- added by thebeing (Submitted the item)
  •  

    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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 08 Dec 2008 09:05:05 AM UTCCaSCategoryBase/Foundation=>Gui/AppKit
      StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sun 07 Dec 2008 09:25:30 PM UTCFredKieferCategoryNone=>Base/Foundation

    Back to the top


    Powered by Savane 3.1-cleanup1