• 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: Extracting file name & path from NSOpenPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extracting file name & path from NSOpenPanel


  • Subject: Re: Extracting file name & path from NSOpenPanel
  • From: "Bobby B" <email@hidden>
  • Date: Sun, 2 Apr 2006 15:49:57 -0400

Phil,

Look in your  code, you are already using the filename and path!
Below is part of your code:

NSString *content = [NSString stringWithContentsOfFile:[panel
filename]];

the [panel filename] is the filename of the file you selected.

So, just use:

NSString *myFile = [panel filename];

- Bobby
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Extracting file name & path from NSOpenPanel
      • From: Phil Faber <email@hidden>
  • Prev by Date: Re: Core Data: How do you count records in a persistent store?
  • Next by Date: Re: Extracting file name & path from NSOpenPanel
  • Previous by thread: Re: Extracting file name & path from NSOpenPanel
  • Next by thread: Re: Extracting file name & path from NSOpenPanel
  • Index(es):
    • Date
    • Thread