Re: Accessing Cocoa instance variables from C functions
Re: Accessing Cocoa instance variables from C functions
- Subject: Re: Accessing Cocoa instance variables from C functions
- From: Scott Ribe <email@hidden>
- Date: Wed, 26 Apr 2006 12:47:31 -0600
- Thread-topic: Accessing Cocoa instance variables from C functions
> Given that you wrote the C library, I would suggest adding a (void *)
> context argument to your API. Easy & straightforward. Works
> regardless of single window vs. document based and your library will
> remain portable as it does not introduce any Objective-C'isms into
> the library.
And also necessary if you want a C++ developer to be able to access members
of C++ classes, as C++ uses a similar technique. IOW, highly recommended ;-)
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
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