bug-gnustep
[Top][All Lists]
Advanced

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

[bug #25116] NSDocument should not ignore readFromFileWrapper:ofType:err


From: Fred Kiefer
Subject: [bug #25116] NSDocument should not ignore readFromFileWrapper:ofType:error:
Date: Thu, 18 Dec 2008 08:04:16 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.9 (like Gecko) SUSE

Update of bug #25116 (project gnustep):

                 Summary: NSDocument should handle loading of "known"
types.... => NSDocument should not ignore readFromFileWrapper:ofType:error:

    _______________________________________________________

Follow-up Comment #1:

The original topic of the bug report was a bit off. There is no magic in
NSDocument to load any sort of specific file format. Indeed Bean has all the
code to load formats via NSAttributedString in its method
readFromFileWrapper:ofType:error:, what our implementation of NSDocument is
failing to do is call this method.

What we do is check for an implementation of readFromFile:ofType: (The old
method for this purpose) and call this when implemented. This handling should
be extended to check for the new method as well. The whole process is a bit
tricky as we have to make sure both lines still work. We already have a macro
in NSDocument to check, whether a method was overloaded OVERRIDDEN, we just
need to use this for reading and of cause for writting as well.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?25116>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/





reply via email to

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