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

Re: pathForResource:ofType: iOS bug?


  • Subject: Re: pathForResource:ofType: iOS bug?
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Sun, 07 Jul 2013 19:42:15 -0500

How are you examining the return value? Show us that code too, please.


On Sun, Jul 7, 2013 at 7:34 PM, Jeff Smith <email@hidden> wrote:

>
>
> 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
_______________________________________________

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: 
 >pathForResource:ofType: iOS bug? (From: Jeff Smith <email@hidden>)

  • Prev by Date: pathForResource:ofType: iOS bug?
  • Next by Date: Re: pathForResource:ofType: iOS bug?
  • Previous by thread: pathForResource:ofType: iOS bug?
  • Next by thread: Re: pathForResource:ofType: iOS bug?
  • Index(es):
    • Date
    • Thread