• 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: Instance Variable access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instance Variable access


  • Subject: Re: Instance Variable access
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Fri, 7 May 2004 20:17:52 -0700

Hello...

If you want to understand what's going on with objc_msgSend and IMPs, the necessary documentation is the Objective-C Reference, which can be found at:
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/index.html

It is also included in the /Developer/Documentation/ installed with the developer tools, but its location varies depending on which kind of fur your system has (or I guess more accurately it depends on which developer tools install you have used).

It would probably be a good idea to read through the whole thing, at least once.

The details on objc_msgSend are in this section:
(The Objective-C Language > How Messaging Works)
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/3objc_language_overview/chapter_3_section_6.html

IMPs are function pointers that allow you to call methods directly without using objective-C messaging. For more info on IMPs, you can read the documentation for the Objective-C language, which are discussed in that manual, but the description in the class description for NSObject in the Foundation docs might be more helpful:
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSObject.html

Hope that helps,

Louis


While this is an excellent answer, it does not answer the original
question - at least not for me. The response is about why it is good to
use ObjC_msgSend and makes an excellent point. However, the question is
about how to avoid ObjC_msgSend in favor of a more direct route in the
interest of speed. The answer to that question is also of interest to me
(some of us smoke test computers for a living).

Tim
_______________________________________________
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.


References: 
 >Re: Instance Variable access (From: mmalcolm crawford <email@hidden>)
 >Re: Instance Variable access (From: "Tim Ramsey" <email@hidden>)

  • Prev by Date: Re: Instance Variable access
  • Next by Date: Re: Archiving ABPerson
  • Previous by thread: Re: Instance Variable access
  • Next by thread: Re: Instance Variable access
  • Index(es):
    • Date
    • Thread