Re: Newbie question: error in creating a NSData object using handle (Resource Management)

2008-06-26 Thread Tran Kim Bach
if((type2 =='PREC')([resID intValue]== 302)) There is a typo in the above code line:It should be: if((resType1 =='PREC')([resID intValue]== 302)) Regards, Bachtk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Newbie question: error in creating a NSData object using handle (Resource Management)

2008-06-26 Thread Tran Kim Bach
Wow, thanks Ken a lot.About the endian issues, I have a compatible swap function to convert data to Big-endian (and vice verse). Then, I will correct big-endian issues. I may know where the problem is. When I read to your suggestion, On Fri, Jun 27, 2008 at 6:11 AM, Ken Thomases [EMAIL PROTECTED]

Newbie question: error in creating a NSData object using handle (Resource Management)

2008-06-25 Thread Tran Kim Bach
Hi folks,I'm a newbie to Cocoa. Recently, I'm working on a project relating to Resource Management. In my project, there's a part that I'm reading through the resources in a resource file. I'm using: int count = CountResources( typeName ); to get all resource that has the type typeName, then loop

Re: Newbie question: error in creating a NSData object using handle (Resource Management)

2008-06-25 Thread Tran Kim Bach
. Now, when I confirmed the *dataHandle, it returned NULL but I don't know why? --Bach On Wed, Jun 25, 2008 at 3:36 PM, Ken Thomases [EMAIL PROTECTED] wrote: On Jun 25, 2008, at 1:19 AM, Tran Kim Bach wrote: Hi folks,I'm a newbie to Cocoa. Recently, I'm working on a project relating to Resource