Re: Is there a self?
Re: Is there a self?
- Subject: Re: Is there a self?
- From: Andrew Farmer <email@hidden>
- Date: Mon, 14 Nov 2005 12:33:39 -0800
On 14 Nov 05, at 12:29, Brian O'Brien wrote:
I have a simple Foundation tool that I am using to test my
framework code.
The framework starts a thread and requires that the class that
started the thread pass a pointer of the instance of the class
that started it... In this case main created the thread...
Does main have a 'self' object and are selectors possible off of
that self?
No. (id) self only exists as an implicit argument to Objective-C
methods. For
example, I believe a method with signature -(id)doStuff:(int); would
be similar
to a C function with signature (id)doStuff(id, SEL, int).
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden