• 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
Re: Converting C strings into NSStrings (and vice versa)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting C strings into NSStrings (and vice versa)


  • Subject: Re: Converting C strings into NSStrings (and vice versa)
  • From: Ondra Cada <email@hidden>
  • Date: Fri, 28 Apr 2006 15:30:08 +0200

Paolo,

On 28.4.2006, at 15:04, Ondra Cada wrote:

That's since Xcode supports *a lot* of APIs beside Cocoa.

perhaps worth adding that Apple (and, with some APIs, other as well) programmers did a great job allowing us to mix them very successfully in one project, in many cases even in one source. Especially nice point is that very often Cocoa objects and Core Foundation objects are, effectively, the same (though it has some ugly consequences, like that NSArray and NSMutableArray cannot be efficiently distinguished runtime).


Still, you have to mix the APIs in a controlled manner. Not all CF/ Cocoa objects are equivalent. And especially, there is a comparatively small number of cases (though definitely there are some!), in which you can safely use a service of one API along with a constant of another one.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ 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
References: 
 >Converting C strings into NSStrings (and vice versa) (From: Paolo Bertani <email@hidden>)
 >Re: Converting C strings into NSStrings (and vice versa) (From: Ondra Cada <email@hidden>)
 >Re: Converting C strings into NSStrings (and vice versa) (From: Paolo Bertani <email@hidden>)
 >Re: Converting C strings into NSStrings (and vice versa) (From: Ondra Cada <email@hidden>)

  • Prev by Date: Getting a NSView pointer from a nib
  • Next by Date: Re: Getting a NSView pointer from a nib
  • Previous by thread: Re: Converting C strings into NSStrings (and vice versa)
  • Next by thread: Re: Converting C strings into NSStrings (and vice versa)
  • Index(es):
    • Date
    • Thread