Re: string encoding in NSMutableData
Re: string encoding in NSMutableData
- Subject: Re: string encoding in NSMutableData
- From: "Paolo Manna" <email@hidden>
- Date: Wed, 8 Aug 2007 22:50:47 +0100
On 08/08/07, John Stiles <email@hidden> wrote:
> I think going to NSString and NSData might be a little overkill given
> that the actual type in question appears to just be an OSType (which
> is just an int, nothing more). Why all the handstands here?
True, if we really start from a string (that is needed as a
NSDictionary key anyway, according to the posted code), and it will be
used just as an OSType a QTOSTypeForString() call would be enough...
But, I don't want to make assumptions how that will be used: for
example, if you're going to interact with QTKit, you could end up in
principle working with NSData in many places...
Too little code posted to decide what's actually the best solution!
Paolo
_______________________________________________
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