• 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: file path question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file path question


  • Subject: Re: file path question
  • From: <email@hidden>
  • Date: Sun, 4 Apr 2010 03:10:36 -0700
  • Acceptlanguage: en-US
  • Thread-topic: file path question

Hi,

To check the file existence use
{
NSFileManager *fileManager = [NSFileManager defaultManager]
BOOL fileexist = [ fileManager  fileExistsAtPath:YOURPATH];
}
- (BOOL)fileExistsAtPath:(NSString *)path

*pathForResource: ofType: inDirectory:*  does not load files outside bundle

Thanks
Rajendran P


On 04/04/10 3:31 PM, "Ariel Feinerman" <email@hidden> wrote:

Hi,
Can we load resource by -*pathForRecourse: ofType: inDirectory:* outside the
bundle folder? Second, there is absolute path represented by NSString,  is
the way to check whether file exist?
--
best regards
Ariel
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >file path question (From: Ariel Feinerman <email@hidden>)

  • Prev by Date: file path question
  • Next by Date: Mysterious 'QLPreviewView ' crashes.
  • Previous by thread: file path question
  • Next by thread: Mysterious 'QLPreviewView ' crashes.
  • Index(es):
    • Date
    • Thread