Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth Mac > Re: Question on...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 6 Topic 91 of 161
Post > Topic >>

Re: Question on Forth & C++/ObjC objects

by n_sacra@[EMAIL PROTECTED] Jan 6, 2005 at 03:46 AM

Hi Erik,

Erik wrote:
> Hi!
>
> Roelf Toxopeus wrote:
> > In article <1104663710.743774.22610@[EMAIL PROTECTED]
>,
>
> > > The function sel_getUid() will get you a selector (from a
> C-String), and
> > > objc_getClass() to get a class (also from a C-String).
> >
>
> So in other words, Apple (or Brad Cox, ObjC's creator) created a way
to
> access ObjC functions from non-ObjC languages to maintain some sort
of
> compatibility.  Would that be accurate?  That's interesting; it never
> occured to me that something like that could be done.
>
> Thanks,
> Erik

A bit supplement.
These functions including "objc_msgSend()" are there also for
Objective-C.

[quote-begin]
Discussion
When it encounters a method call, the compiler generates a call to one
of the functions objc_msgSend, objc_msgSend_stret, objc_msgSendSuper,
or objc_msgSendSuper_stret.
[quote-end]
from: (excuse me for a long line)
<http://developer.apple.com/do***entation/Cocoa/Reference/ObjCRuntimeRef/ObjCRuntimeRef/function_group_2.html#//apple_ref/doc/uid/20001426/objc_msgSend>

As Mike and Roelf implied, mechanisms to link to shared library will be
easier to understand when you think it belongs to lower level than
features of programing languages.

Sincerely,
Nao Sacrada
 




 6 Posts in Topic:
Question on Forth & C++/ObjC objects
"Erik" <cust  2005-01-02 03:01:50 
Re: Question on Forth & C++/ObjC objects
Mike Hore <mikehoreREM  2005-01-02 21:03:01 
Re: Question on Forth & C++/ObjC objects
Roelf Toxopeus <these3  2005-01-02 14:25:10 
Re: Question on Forth & C++/ObjC objects
"Erik" <cust  2005-01-04 15:50:23 
Re: Question on Forth & C++/ObjC objects
"Erik" <cust  2005-01-04 15:56:09 
Re: Question on Forth & C++/ObjC objects
n_sacra@[EMAIL PROTECTED]  2005-01-06 03:46:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:09:08 CST 2008.