Added: 4 years ago
From: Masna360
Views: 277,083
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (256)

Sign In or Sign Up now to post a comment!
  • how do i use the app kit framework?

  • So, Xcode/Objective-C is kind of like VB.NET for Mac, right?

    Sure looks like it :)

  • This guy's good...

  • Have you checked out the Steve Jobs Quotes and Trivia App on your iPhone? :)

  • The tutorial beats its purpose, the application is too simple for someone that already knows how to use the Xcode ide and handle coco projects yet the tutorial relies too much on the ide making the language and the framework look confusing and difficult

  • @siriguillo Certainly explains the quarter of a million views, eh?

  • @Masna360 well there is a lot of interest on Iphone and Ipad applications to motive people to look for tutorials and yours is the first to appear because is the best match to Objetive-C Cocoa Tutorial.

    But dont take it in a bad way i meant to be constructive really. The problem i notice with your tutorials is that they are aimed at beginners but you forget to explain that cocoa is an MVC framework and what that means, so beginners complain that VB is easier not noting that VB is not a framework.

  • @Masna360 Most dont notice that comparing VB to Cocoa makes no sense, since Cocoa is a framework and VB is a programming language. Beginners dont know what a pattern is so they dont understand why you are splitting the code in the controller from the UI. Make a video explaining that Cocoa is MVC oriented framework, explain a bit about MVC and your tutorials will be much more effective. MVC is the best pattern for large projects but a simple app does not show the benefits of the pattern.

  • @Masna360 and point out that the language you are using is Objective-C but is not necessary to use Objective-C to use Cocoa, and that Cocoa is the equivalent to the .Net framework not the equivalent to VB, VB is the equivalent to Objective-C. Try it, i bet your vids will reach the million views then. :)

  • @Masna360 Yet only 251 likes, Weird eh.

  • Man, I kinda like Visual Basic better, but I do like how Apple doesn't make you download xcode. But I am very excited to learn this

  • So, how do you use objective-c to control applescript?

  • You sound EXACTLY like Hiccup from How to Train Your Dragon!!!!

  • Post x code 4 vids I'll watch em ten times for u

  • Were did u learn this from

  • good one... but can you SHOW THE ENTIRE SCREEN......?

  • I thought that this was really help full. xcoderblog(dot)wordpress(dot)c­om

  • This is too old to be relevant anymore - please remove it from the Internet

  • @lazystaleuselessscan No it's not, I just feel like he didn't really explain that NSBeep(); is a preset in the SDK. Even today, XCode 4 serves the same basic functions and the UI is pretty much the same.

  • watching your video is giving me a headache. you could have just show the full screen all the time instead of moving it according to your mouse action.

  • watching your video is giving me a headache. you could have just show the full screen all the time instead of moving it according to your mouse action.

  • You sound like Hiccup from "How to train a dragon".

  • Awesome tutorial, you sound like Donnie Darko!

  • Literally sounds like the guy off of sorcerers apperintence

  • Great tutorial dude, it's freaking easy to connect the GUI elements with methods :O, i love cocoa.

  • unlike soviet mac where computer programs you with the one true way, we have options in windows. you can write dynamically bound model-view-controller designs like this if you want to, and there are much better tools to do that, or you can do classic statically bound, hard coded events, and again, with much better tools. i mean, dynamic binding and MVC predate xcode and cocoa, and "MVC or not" isn't a windows vs mac question. though, "MVC always! and you'll f'n like it!" is only on the mac.

  • The permanent scrolling makes me nervous and it is annoying (for me). Even on 480p the code isn't really readable.

  • Hey guys! Check out my channel giving you great xcode tutorials so be sure to subscribe as we are fairly new

    also giveaways coming soon :)

    see you guys soon!

  • Why the fuck does my xcode look different than the tutorials...and yes it is the most recent one i just downloaded it...and every video says to use an nib file but mine dont have one...god this stuff is frustrating

  • @joejoerg I know the feeling. I'm using XCode 2.5 because I'm running Tiger. Get it here:

    adcdownload.apple.com/Develope­r_Tools/xcode_2.5_developer_to­ols/xcode25_8m2558_developerdv­d.dmg

  • @joejoerg I know the feeling. I'm using XCode 2.5 because I'm running Tiger, and it seems pretty identical to the one used here. Get it here:

    adcdownload.apple.com/Develope­r_Tools/xcode_2.5_developer_to­ols/xcode25_8m2558_developerdv­d.dmg

  • what is instance ?.

  • hahaha beep noise *kid screaming*

  • In version 3.2.3, the inspector layout is completely different from the tutorial. How do you add an action as mentioned @2:08 for 3.2.3?

  • this guy does it the long way. in the new xxcode all you have to do is drag a sound in on the button

  • @THEAPPLESDK but is that really coding? No. Dragging and dropping doesn't teach you anything. The long way around teaches you why you type the stuff where, but you created the subclass, what the .h and .m files are...

  • wow, VB is WAY easier. u just drag in a button, double click it, and type console.beep. I still think Mac is better tho

  • @Kazaskater123 That's because VB is an amateur rapid development tool which doesn't let the programmer handle the events properly themselves.

  • nice video thanks for taking the time to load this. Do you have any apps that you have created on

  • What would you have to do to let it play a custom sound, like a song for instance?

  • Great Work Guy!!

  • Perfect man!! very helpfull!!

  • I have xcode 3.1.3 and it looks different...can't find how to create .h and .m files

    when I rightclick the application it shows only the connection to the button...and nothing about creating anything :(

  • I'm totally lost.

    I tried to follow this on both my Leopard machine and my Snow Leopard machine, but the new interface looks nothing like the one in your tutorial.

    I guess I need to refine my search.

  • this tutorial is very old, you should search for xcode 3 tutorials, this is xcode 2

  • check out my Objective-C programming videos. Just go to my channel and you will see the playlist.

  • This is quite good, but I'm assuming the menus on Xcode and Interface builder have changed with XCode 3.0 in Leopard. My menus look quite different.

  • When I open xcode and make a new program i do not have a .nib file, all i need to know is how to do simple programming like inputting variables with scanf, and printing them with printf, but i can't get what I've programmed to ever open a window showing me the result of my code any help would be much appreciated

  • @Jointhecreed it isnt .nib its .xib

  • Thank you for the introduction

  • Xcode runs fine on my Ma Book Pro (Intel)

  • Have you ever programmed with Cocoa? Because I've talked to a lot of Windows developers who transitioned to Mac and every one of them says it's not even a fair comparison; Mac is better.

  • @NikFriz I can't say the same thing if we're talking about .NET. Visual Studio IMHO is the best IDE out there. Even XCode can't compare to it.

  • a little intimidating

  • you are a natural born loser

  • Great starting tutorial! Been looking for something like this. Thanks a Whole Bunch.

  • You have to be joking, Is this ow you develop apps for an Apple. What a total disaster.

    Windows is not that complicated. I thought apples where easy.

  • you english good speak

  • yeah you are what you is

  • It is very easy, but it requires for you not to be an idiot... so that's probably why you're confused.

  • Its not that I am an Idiot but struggle to see how jumping from one window to the next to write a simple beep program is called easy.

    Usability is missing here,

    In Visual studio you drag a button onto the GUI and write one word of code. "Beeb"

    No wonder everyone hates the iPad.

  • Lool. :))

  • lol You can't even spell 'beep'. How sad

  • hey stupid, in Windows programming you need to spread dll:s and shit all over the place like a complete retard compensating for a bad centralized os which is a fucking joke instead of getting down to the core programming issues.

  • @mixxmexx the opposite is true, .NET is an abstraction. it's based on a managed virtual machine, you don't deal with the specifics of your machine whatsoever and it's actually considered a bug in the environment if the same code runs differently on different machines. also one routine can't corrupt the data of another or any low level resources like your heap or stack. .NET is in the same family as javascript, flash, php, python, perl, java etc.. where Objective C is like C/C++, pascal, etc..

  • It's Okay, everyone has to start somewhere. You've chosen windows...well...maybe not the best choice but hey you'll learn

  • winodws apps are also crap

  • maybe I didn't see it but at what point did you add the beep sound into the program

  • NSBeep();

  • @obliion6 the NSBeep() is a function built into Cocoa that causes it to play the default beep sound.

  • @obliion6 the NSBeep() is a function built into Cocoa that causes it to play the default beep sound.

  • i cant wait till i learn

  • that is deep

  • God tutorial but man the screen moving around drove me nuts like I was on a roller coaster ride! Next time keep the screen frozen and let us watch your cursor move around please!

  • I just switched to mac, and Cocoa is so confusing for me. I can't think they way this style programming is arranged. I'll stick with JAVA... as much as I hate it.

  • Mac programming and Java programming are just very different. Java has a wealth of open source libraries, frameworks, servers, and services. OS X programming has extremely good tools for rapidly programming GUIs. A lot of things like the Introspection and JavaBeans APIs in Java are just part of Objective-C/Cocoa. As an OS X developer you can create GUI apps, even database editing/browsing apps - without really writing much code.

  • too much work to do a simple beep. the only language i know is vb and  you can do a beep program in 5 seconds

  • You can do a "beep" program with Cocoa in 5 seconds as well (or as long as it takes you to type NSBeep();).

    The point here was to have the clicking of a button trigger the beeping noise.

    Also, this is too much work?

  • you have like 10 different windows open(it's confusing)It's too much work as to compared with vb . I would have done the same thing in just a line of code , and not mess around with different windows. I'm just saying it's easier to do in vb(visual studio) , but that maybe just maybe is because xcode it's a more complex development tool....

  • It's doesn't seem like a lot of work once you understand why this process comes together nicely to create the beep program. Give Cocoa more time, you'll fall in love like everyone who truly learns it does.

  • @Masna360 Indeed bro, in Visual Studio if you double click an UI element it takes you directly to the part of the code that runs whenever you click that element on the final application. XCode is too damn complicated, though I recognize Apple does a terrific job at creating APIs and frameworks to make the programmer life easier. It's just that the learning curve for Cocoa is kinda tough.

  • @ghamauricio Yeah and to think cocoa was originally intended to be for kids

  • More like five windows. In VB, you would have open: Properties sheet, components palette, GUI design, and source code. So not much difference in number of Windows.

  • @flashfith I think that you'll also find Objective-C is a far more powerful language which can be used for far more than writing Cocoa applications. VB is not often used by professional application developers.

  • @flashfith Visual Basic is a very basic computer language. Nothing like these higher level programming languages that you'll actually use if you become a programmer. If you like VB, though, and are on a mac, check out Objective-C.

  • @flashfith hahahahaaaa. sorry. um, vb is quite a bit more complex, and just because VS's code inspector defaults as the largest part of your UI doesn't make it any harder or easier to resize or change views. Actually, xcode is a much simpler tool, because of better/more/more organized classes and objects in Mac OSX. Sure you can KLOC until you are blue in the face, but the object is more functions in less lines of code. Further more, in this environment (xcode) you can access...

  • @flashfith all multimedia plugins/sdks/apis that you can in VS....they are all integrated in xcode...oh and its free. You can treat xcode as a basic compiler/IDE for just about any language (except vb...thanks ms) if thats your thing, but the workflow and ease of user preference choice is...as they say, as user friendly as OSX itself. But you still have to know your language, or say, that vb and vs are very different things...ie, you can code in VS without ever knowing any VB. luls.

  • @Masna360 in VS, which means C#/VB.Net and even VC++, you can do it in an more intuitive manner, you just click the button twice and the IDE jumps to the on the fly create clickhandler and you can type "NSBeep();", and all this in one window. thats what he mean.

  • YES! SOMEONE ALSO WITH TIGER AND XCODE 2.4.1 (or 2.1.4, not sure) can you please make a tut on how to make a calculator? i have been looking all over and could only find ones for xcode 3 :(

  • Wow, this would have taken 30 seconds to do in Visual Basic 4 through 6. I really want to learn how to make iPhone apps, but by the time I learn all this, the iPhone will only be seen in Museums and eBay, lol

  • (@OneCoolDude) It would have taken thirty seconds if you already knew what you were doing. It's a good tutorial because it assumes you DON'T already know what you are doing: the time is in the explanation not in the action.

  • @proxPedo - I never said it wasn't a good tutorial. I said I want to learn xcode, and that it is a lot to learn. I can only assume you are upset because I made your mom sleep in the wet spot.

  • Nice explanation!

  • VERY slick, clear, fairly-fast-paced, and helpful vid, mate! Would've taken me forever to figure all that out. curious, where's your (you) accent from? THANKS!!!!

  • From Long Island, NY.

  • 10 beep

    20 end

  • Be careful guys, it's .XIM not .NIB in leopard (interface builder)

  • No, it is XIB

  • My layout looks different than yours...huh?

  • He still has got Tiger

  • April 2007, do you think Leopard was a must-have by them? Or was it even launched?

  • It wAs an answer for the Guy that Said: my Layout is different

  • Thanks! I have been trying to figure out xcode for a while now and this really helped!

  • The author of this video chose to define the pointers&references first, and then create the classes later, which is why it seems "out of order." You can create your classes, and then log into IB as the final step to create the links.

  • Cocoa is the window manager component of OSX and this tutorial. The programming languages used by xcode are C++, C and Objective-C. Objective-C is worth learning as it is gaining in popularity. You can also write apps for Linux as it uses GNU/GCC .

  • But if you want to write apps for Linux you have to stick to OpenStep, because of Apple's stupid policies.

  • Cocoa is what the libraries are called. The language is objective-c. If you know those two you should be 100%. The one benefit of the mac is that there is one true way.

    But keep in mind that before you can learn objective-c you have to know c. Objective C is really a Small Talk superset of C.

  • Thanks for taking the time to help us understand this

    great tutorial :D

  • mine doesnt work :(

  • Will you explain the vocabulary?

  • Seems like a lot of work for a beep. But great tutorial by the way! :) Thank you.

  • Hey thanks! i got this to work but instead what i did was get the NSController instead of NSObject :P

  • OOO MMM GGG i dont think xcode and i get along that well

  • Is this in Leopard because i can not find it

  • It's not installed by default. You'll find it in Disc 2 of your install discs, or you can download it from the Apple Developer Connection site.

  • This is the problem with Obj C. It takes 5 minutes to wire up an event. In C# and Visual Studio, it would take 10 seconds, drag the button on the form and double click. Sure, it might not conform to a true MVC architecture but the benefits of development outweigh that. Apple needs to rethink their development platform.

  • Lots of people tell me that as well... but is this thing free? (the visual blah blah blah studio?)

  • NO, it's not free but that wasn't my point. Give me a development platform equal to visual studio for the MAC and I will pay for it. I'm talking about the superiority of Visual Studio's functionality vs Xcode.

  • Delphi has visual studies functionality

  • You can download a fully featured copy of Visual Studio 2008 SP1 Express for free on the Microsoft web site. The only disabled thing a side from a standard version is the plugins. You can't install stuff like VisualAssist X of Qt Toolbox.

  • Actually, Visual Studio is free, if you get the express editions (which basically have full functionality). I have been programming C# for about two years, and it is soooo simple. I am trying to learn how to program on Macs, and it is such a pain in the butt!!!!

  • Hello im new to iphone sdk and was wondering which template should I use to make a game application on the 2.2.1 xcode?

  • You'll need to upgrade to at least XCode 3.1.

  • at 2:01 mine says show info although its just the same thing as inspector i think O.o

  • I do not see .nib i only have . xib idk if that is the same thing

  • I Downloaded this program and it didnt give me a window of to install it then i had the folder still i tried opening it and it says i nedd Mac OSX 10.5 and i have MacOsx10.5.6 like wtf can you help me out

  • Great tutorial. I've watching tons of mind-numbing hours of instruction vids and yours was by far the most straight forward and easy to understand.  You really should be charging for this. Thank you!!

  • Hi there.

    Im just starting out with this and liked your vid. Keep them coming :)

    Cheers

  • Actually, a NIB file is a "Nextstep Interface Builder (NIB)" file. Good tut!!.

  • so u can only program in Objective-C using os x.

  • No, you can use a host of languages. C++, Ruby, Python, Perl, even C# using some unsupported plugins for XCode 2. And as long as your code links to the Cocoa frameworks or Carbon, you get a nice OS X interface.

  • do u know if i can use similar software(for objective c ) in windows? or is this ONLY in mac os x

    THANX IN ANTICIPATION

  • there's no xcode-like software in windows, there are other IDE-s (borlands, visuals, etc), but no xcode :p

  • This is sick! Nice one for a quality straight forward tutorial on this stuff! I'm an absolute n00b at this shiz lol and I got this!

    Thanks!

  • around 2:30 you can hear a kids noise.. i thought for a sec my kid (10 month old) was calling.. =)

  • Not a bad tutorial. I'm sorta starting to get ahold of all this cocoa mess lol.

  • Could someone tell me how to replace the beep with a mp3 clip?

  • i was serching of how to do that thanks cool video

  • very useful, thank you

    one question what's the language on the .h and .m?

    is it C#? C++? or sth different?

  • It's Objective-C. Basically based off of C.

  • literally C but Object-oriented

  • Hey!! I have xcode 3.0 and I just can't find where is the CLASS tab!! in the MainMenu.nib plese help!

  • There is no class tab anymore. If you want to customize an object's class, open the Inspector Panel, and click on the last tab. There you can fill in a subclass.

  • Thank's!!!

  • Nice tutorial. Very clear and the step by step approach is helpful.

  • what version of xcode is that. i got 3.1 and cant figure out how to do that

  • i want to learn how to do this stuff and learn the language and stuff does anyone know where i can learn this stuff online

  • yeah, I'm looking for the same thing!

  • So Objective-C and Open GL are the leading programs to creative cell phone video games? What cell phones are they compatible with??

  • ïPhone - only!

  • I had to pause a lot to keep up, but it was fun to build a working app on my first time opening xcode!

  • iam thinking of learning this language just for the sake of iphone... is this Xcode gonna work for iphone too?

  • Sure. Instead of a Cocoa app for MacOS X, you'll use it for a Cocoa Touch app for iPhone OS. XCode is the IDE of choice for iPhone development of course ;)

  • cool wallpaper

  • Just what I needed to kick start me. Cheers

  • This is definetly easier than the QT designer, God i hate that thing...

  • honestly you're making things more complex than they are

  • lol. ok, tell me how im making it more complex than it is?

  • Wow, Xcode has gotten nicer since this video.

  • please help i do not have the coco app how come

  • What version of Mac OS X are you running?

  • 10the newest whatever it is

  • put the discs in that came with your computer then optional installs and get xcode

  • It is 10.4

  • visual studio is so much easier than this

  • How do I create a file for the ''AppControler''?

  • How do I manage to make Xcode to save a text file or more in my app?

  • Well, I have a .xib file, I am running Leopard with XCode 3.0... Once I open the .xib file in Interface Builder, I get the mainmenu.xib and the window but not the interface with the Instances, Classes, etc. that you get. I get the one with "File's Owner", "First Responder", "Application", "Main Menu", "Font Manager". Whenever I double-click on anything I always get nothing but the blunt sound. What is going on here?

    Thanks