• 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
Returning a string value from a c function to a Objective-C class method. Is there an approved approach?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Returning a string value from a c function to a Objective-C class method. Is there an approved approach?
      • From: Doug Hill <email@hidden>
  • Prev by Date: Customizing a UISwitch?
  • Next by Date: Re: Returning a string value from a c function to a Objective-C class method. Is there an approved approach?
  • Previous by thread: Re: Customizing a UISwitch?
  • Next by thread: Re: Returning a string value from a c function to a Objective-C class method. Is there an approved approach?
  • Index(es):
    • Date
    • Thread