• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: NSString and txt file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: NSString and txt file


  • Subject: RE: NSString and txt file
  • From: Martha Espinosa <email@hidden>
  • Date: Thu, 15 Apr 2004 12:56:11 -0600

Hi,

Thanks for the responses... I placed a couple of NSLogs to
troubleshoot further and here is what I get...

2004-04-15 12:47:51.618 BetterInCocoa[7477] File Path =
/Volumes/Production/SWinstallers.txt
2004-04-15 12:47:51.619 BetterInCocoa[7477] File Contents = (null)
2004-04-15 12:47:51.619 BetterInCocoa[7477] software = <CFArray
0x33fc80 [0xa01900e0]>{type = mutable-small, count = 0, values = (
)}

My network drive isn't getting mounted before I read my text file...
so that brings me to this question...How can I mount the network
drive using object C? Please be patient with me.... I'm learning
slowly with all you help!




Hi,

I am trying to read in .txt file from a mounted drive so I have tried
the following...

using applescript I mount a network share then copied my
SWinstallers.txt file to the /tmp directory and in my AppController.m
I added the following

NSString *path = [NSString stringWithFormat:@"/tmp/SWinstallers.txt",
NSHomeDirectory()];
OR
NSString *path = [NSString
stringWithFormat:@"%@/tmp/SWinstallers.txt", NSHomeDirectory()];

When my table comes up it displays nothing....

another way I tried was in my AppController.m

NSString *path = [NSString
stringWithFormat:@"/Volumes/Production/SWinstallers.txt",
NSHomeDirectory()];
OR
NSString *path = [NSString
stringWithFormat:@"%@/Volumes/Production/SWinstallers.txt",
NSHomeDirectory()];


can anyone point out what am I doing wrong??
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: allow user to drag controls to make their own interface?
  • Next by Date: Re: allow user to drag controls to make their own interface?
  • Previous by thread: Re: NSString and txt file
  • Next by thread: Delegate for multiple NSTextViews
  • Index(es):
    • Date
    • Thread