[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSDocument fix
From: |
Wolfgang Lux |
Subject: |
Re: NSDocument fix |
Date: |
Mon, 24 Sep 2007 15:36:06 +0200 |
Hello list!
The following patch improves my previous fix to the -fileName/-
setFileName:
compatibility code in NSDocument. The patch now ensures that the
document's
URL is nil if the file name is nil. Note that NSDocument uses [self
fileURL]
in a few places and checks whether the result is nil or not nil. In
addition,
the attached patch removes an unnecessary call to -
setLastComponentOfFileName:
in method -setFileName: (-setFileURL: takes care of this already) and
fixes
one place where the local error variable was not assigned in the correct
place in method -
writeToURL:ofType:forSaveOperation:originalContentsURL:error:
Wolfgang
NSDocument.patch
Description: Binary data
- NSDocument fix, Wolfgang Lux, 2007/09/02
- Re: NSDocument fix,
Wolfgang Lux <=