• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is there a self?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Is there a self? (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: NSoutlineView Source List Bindings
  • Next by Date: Re: Is there a self?
  • Previous by thread: Is there a self?
  • Next by thread: Re: Is there a self?
  • Index(es):
    • Date
    • Thread