• 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
Re: sortedArrayUsingFunction:context: why context is of type void?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >sortedArrayUsingFunction:context: why context is of type void? (From: Marco Michieli <email@hidden>)

  • Prev by Date: Re: Some Questions...
  • Next by Date: Re: Custom buttons
  • Previous by thread: sortedArrayUsingFunction:context: why context is of type void?
  • Next by thread: Re: sortedArrayUsingFunction:context: why context is of type void?
  • Index(es):
    • Date
    • Thread