Re: mutable keys in NSMutableDictionary
Re: mutable keys in NSMutableDictionary
- Subject: Re: mutable keys in NSMutableDictionary
- From: Ivan Kourtev <email@hidden>
- Date: Tue, 7 Oct 2003 12:08:23 -0400
Thanks, I sure had read that myself. I never see these CF... classes
mentioned in any of the cocoa development books so I thought the CF..
is an underlying framework that one does not really need to use that
frequently:
As stated by Apple:
********************************
At a general level, Core Foundation
* enables sharing of code and data among various frameworks and
libraries
* makes some degree of operating-system independence possible
* supports internationalization with Unicode strings
* provides common services and other useful capabilities, including
a plug-in architecture, XML property lists, and preferences
Core Foundation is a library with a set of programming interfaces
conceptually derived from the Foundation framework of the Cocoa object
layer but implemented in the C language. It offers developers many
fundamental software services on several platforms:
* Mac OS 8 and Mac OS 9 (when developing with the Carbon library)
* Mac OS X (when developing with either Carbon or Cocoa)
**********************************
So doesn't use of CF sort of defeat the purpose of Cocoa?
Particularly if one is interested in building a pure Cocoa/Mac OS X
applications? Wouldn't one run in problems with memory handling,
etc...?
On Tuesday, Oct 7, 2003, at 11:44 US/Eastern, Shawn Erickson wrote:
>
>
On Tuesday, October 7, 2003, at 08:00 AM, Ivan Kourtev wrote:
>
>
> It seems a class called CFDictionary does what I need...but I've
>
> never done anything with any CF..., don't know what these are for,
>
> and whether one is supposed to use them at all?
>
>
Note the following...
>
>
CFDictionary is toll-free bridged with its Cocoa Foundation
>
counterpart, NSDictionary . What this means is that the Core
>
Foundation type is interchangeable in function or method calls with
>
the bridged Foundation object. This means that in a method where you
>
see an NSDictionary * parameter, you can pass in a CFDictionaryRef ,
>
and in a function where you see a CFDictionaryRef parameter, you can
>
pass in an NSDictionary instance. This also applies to concrete
>
subclasses of NSDictionary.
>
>
&&
>
>
CFMutableDictionary is toll-free bridged with its Cocoa Foundation
>
counterpart, NSMutableDictionary . ....
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.