Women in Technology

Hear us Roar



Article:
  Giving the Simple Text Editor 'Legs'
Subject:   can't find Application Settings in Xcode
Date:   2004-10-25 09:48:40
From:   Valennad

Once more!


We need to tell Project Builder that our document format is RTFD; actually, we're not telling it anything about the format in terms of data structure, but rather what the file extension, or signature is. To do this go to the Targets tab and click on the SimpleTextEditor target. In that view, click on the Application Settings tab.


There are two places we need to indicate the file extension in the Application Settings pane. In the Signature field of Basic Information type in rtfd. Now scroll down to Document Types and select the "DocumentType" line in the table. Below the table you can edit the type information; type in rtfd in the Extensions and OS Types fields. Scroll down further and click on Change. That's done now, so let's move on.


Problem: How to apply it in Xcode? However I can't find and change Application Settings in this way. Help me please!

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • can't find Application Settings in Xcode
    2004-10-27 09:33:34  SteveChiu [View]

    I'm also trying to follow the steps to learn Cocoa. I'm on OS X.3.5, who has a newer version of Xcode.

    After quite a long search, I found that I can update the extension and OS type fields at:

    - Select the Taget "SimpleTextEditor"
    - Go to Get Info
    - Select the Properties tab
    - You can then find them at the bottom pane

    I believe Signature field is now the Creator field. I didn't change it, yet the application compiles and runs successfully.
    • can't find Application Settings in Xcode
      2004-12-22 01:32:46  WurdBendur [View]

      Yes, these are the same thing. This is the signature, or creator code, that a program leaves on it's files to identify what program created it. You don't have to use rtfd here. You can use anything you want as long as it's no more than four letters (but only A-Z and a-z, no other characters).

      This helps the Finder decide what program to use to open a file, if it's not already associated with one.


      I haven't been able to get the application to work correctly, though. It will open only RTFD files that it creates. It opens others, but no text is displayed in the textView. When I try to open RTFD files created by another program, it gives me this message:

      loadFileWrapperRepresentation:ofType: must be overridden if your document deals with file packages.

      But I thought it was dealing with packages. I don't know anything about that method, though. I wonder if I set something else wrong. I added RTF and TXT to the file types, just set as viewer, so it can't save them. But when it open them, it doesn't show any text. Do I have to change something to make it handle these?
    • can't find Application Settings in Xcode
      2004-10-28 17:57:54  philocon [View]

      This was extremely useful.
      Congrats and Many thanks!