Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

xcode programming part 2

Loading...

Sign in or sign up now!
3,243
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 21, 2009

xcode programming part two

PART ONE: http://uk.youtube.com/watch?v=twfIIB1TvmA

A video tutorial demonstrating buttons, text, NSBeep, random number generate and awakeFromNib.

Development in XCODE 2.0, building a cocoa application using Objective-C.

OSX TIGER (10.4.11)
G5 (PPC)

www.programmingonepointzero.blogger.com

Any Questions just message me. Hope it helps

// SOURCE CODE //
- (IBAction)beep:(id)sender
{
NSBeep();
[textField setStringValue:@ "BEEP!"];
}

- (IBAction)generate:(id)sender
{
int generate;
generate = (random() % 100) +1;

[textField setIntValue:generate];
}

- (void)awakeFromNib
{
NSCalendarDate *now;
now = [NSCalendarDate calendarDate];
[textField setObjectValue:now];

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (shredtheibanez)

  • Hey I really appreciate this tutorial! You need to learn how to type properly, but other then that it is great! What class are you taking ? I'd love to learn this kind of stuff in school but I haven't seen anywhere with Obj-C classes.

  • Self taught. Reading books is the best education for me (because the college i go to is absolutly balls - Plymouth City College). My typing was a bit dodgy i admit, but typing and talking about what you are doing is a little harder than i anticipated..

    But keep working on it, i need to improve, just taking some time off the subject you know, hard to find work using this language where i live, but hey, you never know.

    Keep working at it bud :) Ryan

  • Amazing!

  • Really? I'm doing this for course work (not the programming) the video its self (communication employment) so I'd thought I'd do it on programming.

    I hope this helps, I really do appreciate the comment. :)

see all

All Comments (7)

Sign In or Sign Up now to post a comment!
  • where can i learn what code to put in myslef. because other then your video i dont know any codes

  • Thanks for the video.. I'm trying to figure out as much as I can about XCode as it's a very complicated (advanced) 'compiler' for the stages of coding that i'm in..

    Learned alot, cheers!

  • idk what im doing wrong. But my "beep" button wont make a sound, and the date and time will not display. But the generate random number button works great. lol, good tutorial, very strait forward. Besides the fact that only half my program works, xcode for me is very different. Obviously because yours in this video is an older version so its kinda hard for me to keep up. But thank you man, i did subscribe!!

  • Very goooood yeaahhhh

  • Great video quality good zoom. Excellent tutorial. Thanks!!!! 10 Star

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more