Re: NSValue value:withObjCType:
Re: NSValue value:withObjCType:
- Subject: Re: NSValue value:withObjCType:
- From: Keary Suska <email@hidden>
- Date: Thu, 17 Apr 2008 09:56:54 -0600
- Thread-topic: NSValue value:withObjCType:
on 4/17/08 9:31 AM, email@hidden purportedly said:
>> NSValue has two methods: value:withObjCType: and
>> valueWithBytes:objCType: .
>>
>> What is the difference between these two methods? When do I have to
>> use the first, when the second?
>> I am rather confused.
>
> Read the documentation. For the first method it says:
>> Discussion
>> This method has the same effect as valueWithBytes:objCType: and may
>> be deprecated in a future release. You should use
>> valueWithBytes:objCType: instead.
To be fair to the OP, my documentation (Xcode 3) does not have this
deprecation remark, although I notice the online documentation does, and
Xcode says my documentation is up to date. Maybe this comes with 3.1, which
I haven't bothered to install yet.
So, it's very possible that the OP *did* read the documentation, and it said
nothing about the difference, as my documentation shows.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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