discuss-gnustep
[Top][All Lists]
Advanced

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

openDocumentWithContentsOfFile: path


From: Matthew Weinstein
Subject: openDocumentWithContentsOfFile: path
Date: Fri, 11 Jun 2004 17:25:28 -0400

Found a puzzling difference btw cocoa and gnustep in behavior regarding NSDocumentController openDocumentWithContentsOfFile. On gnustep when my "project file" (one type of NSDocument in my program) opens a file with path the NSDocument acts as though there is no file attached to it. If I pick save it treats it as a SaveAs: and gives me a NSSavePanel.

How do I tell it that it has a file and save should... save without asking for a file.

It works fine on cocoa. Doing the following

           myfile = [myDC openDocumentWithContentsOfFile: myPath  display:YES];

sets up an NSDocument with

-- 
Matthew Weinstein
Associate Professor of Science Education
Kent State University

404D White Hall
KSU
Kent, OH 44242

330-672-0653

mweinste@kent.edu
http://educ.kent.edu/~mweinste

reply via email to

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