• 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
pathForResource:ofType: iOS bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pathForResource:ofType: iOS bug?


  • Subject: pathForResource:ofType: iOS bug?
  • From: Jeff Smith <email@hidden>
  • Date: Sun, 07 Jul 2013 20:34:00 -0400 (EDT)


Hi,



pathForResource:ofType: is returning a path string with 4 garbage characters added to the end of the string.

To make sure it wasn't my program causing the problem I created a new iOS project to try it out and it does it too.


Empty Application
Devices - Universal
No - Use Core Data
No - Use ARC
No - Include Unit Tests


I added this to the end of application:didFinishLaunchingWithOptions:


NSString *path = [[NSBundle mainBundle] pathForResource:@"Default" ofType:@"png"];


Anyone else have this problem?


thanks
Jeff


OS X 10.7.5
Xcode 4.6.3







_______________________________________________

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


  • Follow-Ups:
    • Re: pathForResource:ofType: iOS bug?
      • From: "Stephen J. Butler" <email@hidden>
  • Prev by Date: Re: The cost of using objects rather than plain C variables
  • Next by Date: Re: pathForResource:ofType: iOS bug?
  • Previous by thread: Re: NSTextField / NSSecureTextField toggl
  • Next by thread: Re: pathForResource:ofType: iOS bug?
  • Index(es):
    • Date
    • Thread