Re: Instance Variable access
Re: Instance Variable access
- Subject: Re: Instance Variable access
- From: "Tim Ramsey" <email@hidden>
- Date: Fri, 7 May 2004 19:54:21 -0500
>
On May 7, 2004, at 12:05 PM, Jim Witte wrote:
>
>
> why are simple instance variable accesses even using objc_msgSend
>
> (dynamic or otherwise) *at all*? Is there some reason why ObjC object
>
> instance vars can't be accessed the same way they are in compiled C++
>
> - by direct offset access inside the object struct?
>
>
Encapsulation:
>
<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/
>
2objc_oop/chapter_2_section_3.html>
>
Memory Management:
>
<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/>
>
Key-value Coding:
>
<http://developer.apple.com/documentation/Cocoa/Conceptual/
>
KeyValueCoding/>
>
>
etc.
>
>
mmalc
>
_______________________________________________
>
>
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
Authority without wisdom is like a heavy axe without an edge, fitter to
bruise than polish. -Anne Bradstreet, poet (1612-1672)
_______________________________________________
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.