Re: pathForResource:ofType: iOS bug?
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