Re: sortedArrayUsingFunction:context: why context is of type void?
Re: sortedArrayUsingFunction:context: why context is of type void?
- Subject: Re: sortedArrayUsingFunction:context: why context is of type void?
- From: j o a r <email@hidden>
- Date: Sun, 20 Jun 2004 19:22:34 +0200
On 2004-06-20, at 19.04, Marco Michieli wrote:
>
How can avoid that? What kind of outside parameter is supposed to be
>
used? I expected context to be of type id, but it's actally of type
>
void: why?
It's "void *" because you might want to pass something that's not an
object (and hence not an "id"). Make sure to cast it to the correct
type before using it to avoid the warning.
j o a r
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.