Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 04-26-2009, 02: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
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,257
Threads: 39,032
Posts: 171,207
Top Poster: smasher (2,573)
Welcome to our newest member, arielgren
Powered by vBadvanced CMPS v3.1.0

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