• 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: Douglas Davidson <email@hidden>
  • Date: Mon, 18 Jul 2005 15:44:41 -0700


On Jul 18, 2005, at 3: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?


As far as I know, all implementations of NSBundle on Mac OS X so far have standardized bundle paths to remove trailing slashes. I believe most NSString path manipulations do so also. However, I do not know of any formal guarantee of this, and in most cases the presence or absence of a trailing slash in a path is not significant. I would strongly suggest not relying on any particular standardization.


Can you explain why you would want to rely on this?

Douglas Davidson

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

  • Prev by Date: Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...
  • Next by Date: Re: [off-list] Re: CoreData: Editing a model with XCode corrupts reflefive relationships
  • Previous by thread: Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...
  • Next by thread: Re: [RESOLVED] [[NSBundle mainBundle] bundlePath] and trailng slashes...
  • Index(es):
    • Date
    • Thread