2 Replies - 559 Views - Last Post: 16 July 2010 - 08:09 PM Rate Topic: -----

#1 peterrory  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 06-July 10

Just a quick objc question!?

Posted 06 July 2010 - 06:57 AM

I don't have major problems with the studying material concerning objc because there seems to be so much of it out there and most if either for free or you have to just know how to get it for free! But I digress. I just need to know - by breaking this up bit-by-bit - what this means:
 -(void)viewDidLoad 


Thank you so much in advance for your help and I hope I can help someone myself once I have completed my studies :)

The Dyslexic objc Programmer

Is This A Good Question/Topic? 0
  • +

Replies To: Just a quick objc question!?

#2 GWatt  Icon User is offline

  • member icon

Reputation: 278
  • View blog
  • Posts: 3,079
  • Joined: 01-December 05

Re: Just a quick objc question!?

Posted 08 July 2010 - 01:55 PM

That's not much context to go on, but I can tell you what it means.

Some quick terminology:
Objective C member functions/methods are called selectors.
Parameters to selectors are called messages.
Objects themselves are called receivers.

the '-' at the beginning line declares the selector as an instance selector. You would use a '+' to declare a selector as static.

(void) declares that the selector does not return a value, and viewDidLoad is the name of the selector.
Was This Post Helpful? 0
  • +
  • -

#3 MadScientist305  Icon User is offline

  • New D.I.C Head

Reputation: 6
  • View blog
  • Posts: 44
  • Joined: 26-December 09

Re: Just a quick objc question!?

Posted 16 July 2010 - 08:09 PM

You should take a look the Apple's Objective-c Primer.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1