Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting Mutability in CFStrings




On Jan 20, 2006, at 2:16 AM, Matt Gough wrote:


On 20 Jan 2006, at 03:32, email@hidden wrote:

One is technically defined as a constant pointer, the other not; you could use this to define 2 different class methods with the same name but differing in "constness", and detect mutability that way.


That fails in the case where, for example, some function returns a CFStringRef that is really a CFMutableStringRef.

If the routine meant to return a mutable string, it should return a mutable string. Otherwise you will have to make a mutable copy of the string and use that.


Scott

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Detecting Mutability in CFStrings (From: George Warner <email@hidden>)
 >Re: Detecting Mutability in CFStrings (From: email@hidden)
 >Re: Detecting Mutability in CFStrings (From: Matt Gough <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.