Need help from a pro !

Discussion in 'Mac Programming' started by ariarteau, Sep 24, 2012.

  1. ariarteau macrumors newbie

    Joined:
    Sep 24, 2012
    #1
    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 !!
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    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.
     
  3. Xials macrumors newbie

    Joined:
    Aug 14, 2007
    #3
    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
    }
     
  4. Sydde macrumors 68020

    Sydde

    Joined:
    Aug 17, 2009
    #4
    Xials, you would get a compiler warning about ignoring a return value with that populate method.
     
  5. Murgatroyd macrumors member

    Murgatroyd

    Joined:
    Feb 26, 2010
    Location:
    New York
    #5
    Wikipedia is my first click with a search engine query

    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:
     
  6. 960design macrumors 68000

    Joined:
    Apr 17, 2012
    Location:
    Destin, FL
    #6
  7. ariarteau, Sep 25, 2012
    Last edited: Sep 25, 2012

    ariarteau thread starter macrumors newbie

    Joined:
    Sep 24, 2012
    #7
    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 !
     

Share This Page