• 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: Why isn't this working???? (NSURL and files)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why isn't this working???? (NSURL and files)


  • Subject: Re: Why isn't this working???? (NSURL and files)
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 1 Apr 2003 19:32:24 -0800

On Tuesday, April 1, 2003, at 06:35 PM, Francisco Tolmasky wrote:

I'm trying to work with NSURL, but for some reason it's not working.
WHen I convert from a string to an NSURL it isn't doing it or
something. Here is my code:
[...]
NSURL *typesFile= [NSURL URLWithString: [@"file://"
stringByAppendingString: str]];

Try this instead:

NSURL *typesFile = [NSURL URLWithString:[NSString stringWithFormat:@"file://%@", str]];

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://dreamless.home.attbi.com/

"Building the future and keeping the past alive are one and the same thing." - Metal Gear Solid 2
_______________________________________________
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.
References: 
 >Why isn't this working???? (NSURL and files) (From: Francisco Tolmasky <email@hidden>)

  • Prev by Date: Re: Right way to load initial data in controls when opening a window
  • Next by Date: Re: Why isn't this working???? (NSURL and files)
  • Previous by thread: Why isn't this working???? (NSURL and files)
  • Next by thread: Re: Why isn't this working???? (NSURL and files)
  • Index(es):
    • Date
    • Thread