Objective-C on the Mac L5 - Methods

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,497
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 11, 2010

How to call methods in Objective-C.

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (AppleProgramming)

  • good stuff, thanks

  • @findthebug You're welcome

  • So there always is a plain init method with every class. In Java I always had to define a constructor, even if it was empty.

  • @RMH1565 Ya, in Obj-C the init method is just a method used to initialize your instance variables. There are 2 tutorials later on in this series that go into more depth about how the initializers work.

  • Hi Lucas,

    @Objective-C on the Mac L5 - Methods

    i am just trying to build the program in xcode 4 but the error: receive signal SIGBART is displayed in the main.m when the method is called through [rect setHeight:10]; and also [rect setWidth:5]; the machine says that instance method -setWidth is not found.... any ideas to cope with that??? Thx

  • @eenfach That would usually be because you didn't implement the method in your implementation (.m file). If you need more help feel free to message me via YT or G+.

see all

All Comments (18)

Sign In or Sign Up now to post a comment!
  • Hi lucas, i am the guy talked to you on twitter; my question is: how can i send a variable across classes ? i mean: i have 2 classes, when a person touch on a button on classe2, the class1 receives a value ? pls send me a email to jilbapp@gmail.com and i ll send pictures and a better explain about my program. thx w8 for answer !

  • very easy to understand.

Loading...

Alert icon
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