Get view events

2008-07-03 Thread Tran Kim Bach
Hi everybody, One more newbie question. I cannot get events of the view after I used setContentView method of my NSBox object. Here is what I am doing. I have a main window with a NSBox object in it. I create a view ( A) using Interface Builder and use a class along with A having the view A outlet

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]

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

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

2008-06-25 Thread Tran Kim Bach
t the executable file inside the app package(under contens/MacOS/) not the file with the extension .exe. But you're right. I has just started to use Mac OS for 3 months :). I will try to read up your suggested information. On Thu, Jun 26, 2008 at 12:58 AM, Kai <[EMAIL PROTECTED]> wrote:

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

2008-06-25 Thread Tran Kim Bach
got the same problem. 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. >

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

2008-06-24 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