Cannot Access Data File

  • Hi, I'm new to Cocoa and XCode IDE.  Anyway, I have created a project
    and added existing source files to it including the appropriate data
    files to the source area of the tool.  However, when I run the
    application (i.e Compile and Go). I cannot access the data file when
    the application is ran.  Is there an additional step for adding data
    files to a project?

    Thanks in advance,

    -Conrad
  • Conrad:

      Please give the list guidelines a quick read. Specifically, you
    need to provide just a bit more information. What is the code you're
    using to access the file in question?

      Without this information, I'll guess: You're looking for a way to
    access files in your app bundle's Resources folder. Take a look at
    the NSBundle class documentation:

    http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
    Classes/NSBundle_Class/Reference/Reference.html

    --
    I.S.

    On Oct 1, 2006, at 6:35 PM, Conrad Taylor wrote:

    > Hi, I'm new to Cocoa and XCode IDE.  Anyway, I have created a project
    > and added existing source files to it including the appropriate data
    > files to the source area of the tool.  However, when I run the
    > application (i.e Compile and Go). I cannot access the data file when
    > the application is ran.  Is there an additional step for adding data
    > files to a project?
    >
    > Thanks in advance,
    >
    > -Conrad
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Cocoa-dev mailing list      (<Cocoa-dev...>)
    > Help/Unsubscribe/Update your Subscription:
    > http://lists.apple.com/mailman/options/cocoa-dev/idiotsavant2005%
    > 40gmail.com
    >
    > This email sent to <idiotsavant2005...>
  • Hi, it's a simply command line application that reads in a text log
    file.  However, I cannot access the log file when the application is
    ran via XCode.

    -Conrad

    On 10/1/06, I. Savant <idiotsavant2005...> wrote:
    > Conrad:
    >
    > Please give the list guidelines a quick read. Specifically, you
    > need to provide just a bit more information. What is the code you're
    > using to access the file in question?
    >
    > Without this information, I'll guess: You're looking for a way to
    > access files in your app bundle's Resources folder. Take a look at
    > the NSBundle class documentation:
    >
    > http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
    > Classes/NSBundle_Class/Reference/Reference.html
    >
    > --
    > I.S.
    >
    >
    > On Oct 1, 2006, at 6:35 PM, Conrad Taylor wrote:
    >
    >> Hi, I'm new to Cocoa and XCode IDE.  Anyway, I have created a project
    >> and added existing source files to it including the appropriate data
    >> files to the source area of the tool.  However, when I run the
    >> application (i.e Compile and Go). I cannot access the data file when
    >> the application is ran.  Is there an additional step for adding data
    >> files to a project?
    >>
    >> Thanks in advance,
    >>
    >> -Conrad
    >> _______________________________________________
    >> Do not post admin requests to the list. They will be ignored.
    >> Cocoa-dev mailing list      (<Cocoa-dev...>)
    >> Help/Unsubscribe/Update your Subscription:
    >> http://lists.apple.com/mailman/options/cocoa-dev/idiotsavant2005%
    >> 40gmail.com
    >>
    >> This email sent to <idiotsavant2005...>
    >
    >
  • That doesn't answer the question. Again: What is the *code* you're
    using to do this?

    --
    I.S.

    On Oct 1, 2006, at 6:50 PM, Conrad Taylor wrote:

    > Hi, it's a simply command line application that reads in a text log
    > file.  However, I cannot access the log file when the application is
    > ran via XCode.
    >
    > -Conrad
    >
    > On 10/1/06, I. Savant <idiotsavant2005...> wrote:
    >> Conrad:
    >>
    >> Please give the list guidelines a quick read. Specifically, you
    >> need to provide just a bit more information. What is the code you're
    >> using to access the file in question?
    >>
    >> Without this information, I'll guess: You're looking for a way to
    >> access files in your app bundle's Resources folder. Take a look at
    >> the NSBundle class documentation:
    >>
    >> http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
    >> Classes/NSBundle_Class/Reference/Reference.html
    >>
    >> --
    >> I.S.
    >>
    >>
    >> On Oct 1, 2006, at 6:35 PM, Conrad Taylor wrote:
    >>
    >>> Hi, I'm new to Cocoa and XCode IDE.  Anyway, I have created a
    >> project
    >>> and added existing source files to it including the appropriate
    >> data
    >>> files to the source area of the tool.  However, when I run the
    >>> application (i.e Compile and Go). I cannot access the data file
    >> when
    >>> the application is ran.  Is there an additional step for adding
    >> data
    >>> files to a project?
    >>>
    >>> Thanks in advance,
    >>>
    >>> -Conrad
    >>> _______________________________________________
    >>> Do not post admin requests to the list. They will be ignored.
    >>> Cocoa-dev mailing list      (<Cocoa-dev...>)
    >>> Help/Unsubscribe/Update your Subscription:
    >>> http://lists.apple.com/mailman/options/cocoa-dev/idiotsavant2005%
    >>> 40gmail.com
    >>>
    >>> This email sent to <idiotsavant2005...>
    >>
    >>
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Cocoa-dev mailing list      (<Cocoa-dev...>)
    > Help/Unsubscribe/Update your Subscription:
    > http://lists.apple.com/mailman/options/cocoa-dev/idiotsavant2005%
    > 40gmail.com
    >
    > This email sent to <idiotsavant2005...>
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today