• 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: string encoding in NSMutableData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: string encoding in NSMutableData
      • From: Jaime Magiera <email@hidden>
References: 
 >Re: string encoding in NSMutableData (From: "Paolo Manna" <email@hidden>)
 >Re: string encoding in NSMutableData (From: Alastair Houghton <email@hidden>)
 >Re: string encoding in NSMutableData (From: Jaime Magiera <email@hidden>)
 >Re: string encoding in NSMutableData (From: John Stiles <email@hidden>)

  • Prev by Date: Re: Error trying to add NSImage to NSImageCell
  • Next by Date: Loading data in a background thread and displaying it with Bindings
  • Previous by thread: Re: string encoding in NSMutableData
  • Next by thread: Re: string encoding in NSMutableData
  • Index(es):
    • Date
    • Thread