• 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: [[NSBundle mainBundle] bundlePath] and trailng slashes...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...


  • Subject: Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...
  • From: Dave DeLong <email@hidden>
  • Date: Mon, 18 Jul 2005 17:35:22 -0500


On Jul 18, 2005, at 5:27 PM, Chase wrote:

When I print out [[NSBundle mainBundle] bundlePath] on my current development machine, I get a path with no trailing slash.

Is this guaranteed to be this way on all versions of OS X?

- Chase

If you're doing path manipulations, remember that the NSString class has stringByAppendingPathComponent and stringByDeletingLastPathComponent functions. Those take care of the trailing slash abnormalities for you.


HTH,

Dave
_______________________________________________
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: [[NSBundle mainBundle] bundlePath] and trailng slashes...
      • From: Chase <email@hidden>
References: 
 >[[NSBundle mainBundle] bundlePath] and trailng slashes... (From: Chase <email@hidden>)

  • Prev by Date: [[NSBundle mainBundle] bundlePath] and trailng slashes...
  • Next by Date: Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...
  • Previous by thread: [[NSBundle mainBundle] bundlePath] and trailng slashes...
  • Next by thread: Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...
  • Index(es):
    • Date
    • Thread