Open Bug 334670 Opened 19 years ago Updated 2 years ago

Would like CFString <-> nsA[C]String utils in the tree

Categories

(Core :: XPCOM, defect)

PowerPC
macOS
defect

Tracking

()

People

(Reporter: hwaara, Unassigned)

Details

In Mac-specific components, we usually deal with CFStringRefs, which is apple's core foundation string type. It would be nice if we could add some inlined helpers to nsString.h (mac-only) for this. I haven't looked at all mac-specific parts of the tree, but I'd imagine everyone rolls their own. Camino has this code ready basically, so we can borrow it from them.
I'd be happy to put this code #ifdef XP_MACOSX in xpcom/glue/nsStringUtils.h, see bug 334038
Some code was added to nsLocalFileOSX.cpp. It should be moved somewhere where it can be shared.
Component: String → XPCOM
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.