Re: Question about opening file
Re: Question about opening file
- Subject: Re: Question about opening file
- From: John Tsombakos <email@hidden>
- Date: Mon, 8 Oct 2001 17:47:23 -0400
I figured out my problem. In the Document Types panel, I had not
added/changed the Document Class field to my document subclass. After I
put that in, I was able to open jpg's again. Then I figured out that you
don't add another item to the list to open another type (tiff), but add
it to the existing extension on the same item.
On Monday, October 8, 2001, at 01:16 AM, cocoa-dev-
email@hidden wrote:
Subject: Question about opening file
From: John Tsombakos <email@hidden>
To: email@hidden
I'm playing around with a sample application that I built, using
instructions I found on the web (somewhere, I can't for the life of me
remember where!) It's a document based application that just has an
NSImageView in the window. You can open an image and it gets displayed
in the window. Simple enough.
The tutorial told how to set up the files extensions in the targets pane
of the project to include jpg files. Today, I tried changing it to be
able to also open tiff files. I tried adding another file type and
rebuilt and ran. It would not let me select a tiff file in the Open
dialog. I tried removing the jpg selection and rebuilding. I even did a
clean and rebuild but could not open a tiff file. I decided to try
changing it back to jpg and cleaned and rebuilt. Now I can't open either
tiff or jpg!
I didn't change anything else, so I don't know what I did! What is the
proper things to put in the document types panel?
Thanks,
John T.