Problem with retrieving value type
Problem with retrieving value type
- Subject: Problem with retrieving value type
- From: Ramesh <email@hidden>
- Date: Fri, 18 Jun 2004 09:47:17 +0530
Hi All,
I am using CFNumberRef to represent short int. Usually short int
takes 16 bit memory. So the type i have mentioned while creating
CFNumberRef is kCFNumberSInt16Type.But again when i am retrieving the
value type, it is returning kCFNumberSInt32Type. Can anyone tell me
what actually happens in this process.
Look at the following code:
short int a=10;
CFNumberRef numRef=CFNumberCreate(NULL,kCFNumberSInt16Type,&a);
printf("Value type id is %d",CFNumberGetType(numRef));
Thanks in advance,
________________________________________________________
Ramesh PVK
effigent India Pvt Ltd.
Mobile : 04031148951
Res : 04027227830
Keeping a smile on your face, When inside you feel like dying,
For the sake of supporting others,......means Strength
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.