Newbie Questions About Methods and Messages
Newbie Questions About Methods and Messages
- Subject: Newbie Questions About Methods and Messages
- From: Brendon Bruns <email@hidden>
- Date: Fri, 09 Aug 2002 12:45:51 -0800
Hello, this is my first time posting to this list so please excuse me if I
made any obvious errors in doing so.
I am a newbie to the world of Cocoa so please don't flame me for asking
simple questions.
Anyway, to start off with, methods and messages both appear that they can
both return information to whomever send them. If they return nothing, they
return void. Am I correct so far?
Well, my main question is, what is the point, really, of having a method
returning data when a message could also do it? You have to invoke a method
into action by a message in order for it to do anything, so why would the
method need to return anything? Or is the methods data passed onto the
message which brings it back? I am still quite baffled by this.
Another question, a class, when executed, creates an object instance of that
class. Correct? Well, I believe there is a way to create objects without
using a class...or that is how I have interpreted it. Or, do you always
need to have a class declare an instance of itself to make an object, or can
it be done without the class?
Thank you for any help!
Brendon Bruns
--
"If life gives you lined paper, write the other way"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.