• 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: problem encoding large float* matrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem encoding large float* matrix


  • Subject: Re: problem encoding large float* matrix
  • From: James Maxwell <email@hidden>
  • Date: Tue, 1 Dec 2009 12:39:06 -0800

Okay, I got everything working using the NSData objects. I'll try encoding the bytes again with the unint8_t* cast. I don't know why I didn't try that... I'm really not very comfortable when it gets down to this low-level stuff. I'm a musician, and my programming experience came from MaxMSP, to Java, to Objective-C, and now to this basic C stuff. In other words, totally backwards! ;-)

But I can make stuff work most of the time (really, I swear!).

thanks again.

J.



On 2009-12-01, at 12:25 PM, Greg Guerin wrote:

> James Maxwell wrote:
>
>> erm... actually, just using:
>>
>> [aCoder encodeBytes:coincidences length:coincsSize forKey:@"coincidences"];
>>
>> fails with a complaint about getting a float* when it expects a uint8_t const.
>> In fact, I know remember that's why I used the NSData in the first place... any thoughts?
>
>
> Type-casting is a basic language feature.  (const uint8_t *)coincidences
>
> It's NOT expecting a uint8_t const.  It's expecting a pointer to const uint8_t.
>
>  -- GG
>
> _______________________________________________
>
> 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

_______________________________________________

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

References: 
 >Re: problem encoding large float* matrix (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: problem encoding large float* matrix
  • Next by Date: Re: What to subclass in NSArrayController to enable immediate editing of added rows?
  • Previous by thread: Re: problem encoding large float* matrix
  • Next by thread: How do I bind ManagedObject's relationships to a view?
  • Index(es):
    • Date
    • Thread