Global NSString problem

Discussion in 'iOS Programming' started by Sergio10, Sep 12, 2009.

  1. Sergio10 macrumors regular

    Joined:
    Oct 3, 2007
    #1
    Hi,

    I have global string in the class. And init it like this(in the (id)init):
    PHP:
    filePath = [documentsDirectoryPathstringByAppendingPathComponent:USER_SETTINGS_PLIST_NAME];    
    When I call this string in the other method it seems to be invalid pointer.
    What is wrong?

    Thank you
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
  3. Sergio10 thread starter macrumors regular

    Joined:
    Oct 3, 2007

Share This Page