Returning a string value from a c function to a Objective-C class method. Is there an approved approach?
Returning a string value from a c function to a Objective-C class method. Is there an approved approach?
- Subject: Returning a string value from a c function to a Objective-C class method. Is there an approved approach?
- From: Alex Zavatone <email@hidden>
- Date: Fri, 04 Mar 2016 15:07:35 -0500
I'm in the middle of some fun where there is a wrapper class to a lib that's written in C and the c function has a char string that I'd like to return back to or somehow pass on to an Cbjective-C class.
I'm sure there is an established practice for performing this type of task, but while I have the opportunity to do this, I'd like to start be learning the right way to handle this operation.
I've seen really poor use of a catch all delegate for this approach, but am pretty unsure on viable and safe methods to handle this.
Any tips to how to handle this?
Thanks in advance,
Alex Zavatone
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden