• 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
Problem with retrieving value type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Obj-C runtime not thread-safe?!
  • Next by Date: bringing all app windows to front
  • Previous by thread: Re: Obj-C runtime not thread-safe?!
  • Next by thread: bringing all app windows to front
  • Index(es):
    • Date
    • Thread