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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 04-26-2009, 03:39 PM   #3 (permalink)
dab
New Member
 
Join Date: Apr 2009
Posts: 7
Default

I think I understand the concept of what you're saying. But, how do I save as a .plist? I tried using word, pages, and textedit and none let me.

And also, where do I insert this?
NSString *fileContents = [[NSBundle mainBundle] pathForResource:@"filename" ofType:@"plist"];

NSDictionary *jokeDic = [[NSDictionary alloc] initWithContentsOfFile:fileContents];

NSMutableArray *items = [categoryDic valueForKey:@"items"];

and do I need to change anything to that ^? ("pathforresource and @'filename'")?

Sorry if these are dumb questions, but im new to this and I don't want to mess anything up.
dab is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,716
Threads: 89,175
Posts: 380,475
Top Poster: BrianSlick (7,117)
Welcome to our newest member, Lfelipe
Powered by vBadvanced CMPS v3.1.0

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