Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-29-2009, 06:51 AM   #39 (permalink)
wolverine
Registered Member
 
Join Date: Jun 2009
Posts: 180
wolverine is on a distinguished road
Smile Doubt

In the code, even for finding the resource(image) we use several steps which include lot of CF starting functions and CFRef objects.
Code:
	CGImageRef image;
    CGDataProviderRef provider;
    CFStringRef picturePath;
    CFURLRef pictureURL;
	
    picturePath = CFStringCreateWithCString (NULL, picture,kCFStringEncodingUTF8);
    pictureURL = CFBundleCopyResourceURL(CFBundleGetMainBundle(), picturePath, CFSTR("png"), NULL);
    CFRelease(picturePath);
Why cant we use
Code:
[[NSBundle mainBundle] pathForResource:@"Picture" ofType:@"png"];
. And then do UTF8 conversion.

Its a big doubt for me since I am new to this pdf context and all??

Last edited by wolverine; 10-29-2009 at 06:58 AM.
wolverine is offline   Reply With Quote
 

» Advertisements
» Online Users: 554
16 members and 538 guests
Batman, BrianSlick, chiataytuday, daunmi, fugufish, GHuebner, givensur, HowEver, jasonqg49, k2c, linkmx, mariano_donati, Newbie123, SLIC, tommiss12
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,318
Threads: 93,988
Posts: 402,406
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Libera
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:43 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.