Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ariarteau

macrumors newbie
Original poster
Sep 24, 2012
4
0
Hi Guys,

I'm new into developing using Xcode and I need some hints from you pros. I want to realize an application but I need someone to give me a guideline.

I want to user to be able to choose a celebrity from a pop-up list button, and then, I want the application to say some facts about this celebrity (facts taken from Wikipedia). I want to application to tell let's say the age, the place of birth, the wife's name, etc. Can anybody give me a hint on the code lines I would need to enter or if any of you guys have a tutorial to recommend me.

I'm using Xcode with a Cocoa application. I'm on a MacBook Pro late 2008. Thanks to you !!

Have a nice !!
 
Facts and Wikipedia are two words that do not belong in the same sentence :p.

What programming experience do you have already? From your post I am assuming that this is the first time you have done any programming. If that is the case then I can offer the following advice:

Learn Objective-C first. You won't understand how the Cocoa framework or Foundation framework works if you do not have a clear understanding of the language they were written in. Sometimes it is nice just to jump in at the deep end but in the long run taking the time to learn Objective-C first will save you a lot of time and effort. You can learn Objective-C from this document: Programming with Objective-C.

Once you have mastered Objective-C you should read the following documents: Mac App Programming Guide, Cocoa Fundamentals Guide and Xcode 4 User Guide. These documents should give you enough information to get going.
 
What?

So you want to scrub wikipedia for info, and present it to a user, and you want someone on here to write the "code lines" for you? Here is what I can help you with.

Code:
-(id) initWithFrame:(CGRect)frame wikiURL:(NSURL*) wikiURL
{
    self = [super initWithFrame: frame];
	if (self == nil)
		return nil;
    NSDictionary* noobDict = [self scrubWikiPage: wikiURL];
    [self addSubview: [self populateViewWithWikiData:noobDict]];

    return self;
}
-(NSDictionary*) scrubWikiPage:(NSUrl*) wikiPageUrl
{
    //insert code here
}

-(BSCustomView*) populateViewWithWikiData:(NSDictionary*) wikiData
{
    //insert code here
}
 
Xials, you would get a compiler warning about ignoring a return value with that populate method.
 
Wikipedia is my first click with a search engine query

Facts and Wikipedia are two words that do not belong in the same sentence :p.

A person new to a subject would find most all paragraphs written from Wikipedia to be sufficient as a springboard to glean the basics, with links to other relevant subjects and topics at the bottom of the page to further an understanding, if one desires. For those educated on a subject and then to reference Wikipedia and find outdated or subpar information, and then to besmirch the entire website instead of taking the time to edit any erroneous subject matter on the page, then I suppose Wikipedia is not for you. :confused:

Wikipedia is an excellent website for a novice to begin to explore subject matter. Wikipedia is not a reference source for one to begin to build nuclear reactors or submarines, though. :rolleyes:
 
Thanks to all of you

Thank you guys,

yeah, I have absolutely no experience into programming :p But thanks to all of you to have given me all these links ! If you have any other tutorial to share with me, I will take them all ! And 960design you're right, if it were be that easy, everybody would do it and thanks for the tutorial ! Thanks to you too Cromulent for the documentation !

Thanks again !
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.