• 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: NSBeginAlertSheet and (void*)contextInfo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBeginAlertSheet and (void*)contextInfo


  • Subject: Re: NSBeginAlertSheet and (void*)contextInfo
  • From: Aaron Tuller <email@hidden>
  • Date: Sun, 21 Jul 2002 11:23:58 -0700

if it's an object, make sure you retain it because sheets keep the event loop going so if it's autoreleased, it will free it before your did end selector gets called. Got bitten by that.

-aaron

At 2:27 PM +0100 7/21/02, Finlay Dobbie wrote:
On Sunday, July 21, 2002, at 06:20 AM, Famille GOUREAU-SUIGNARD wrote:

does anibody know how to handle the (void*)contextInfo parameter of NSBeginAlertShhet ?
I don't understant how to pass the parameter, and how to retrieve it.
this (void*) type is very puzzling for me.

void* is just a generic pointer type. So, you can supply a pointer to anything, be it an object or not (it could, say, be a struct, or a C string, or anything).

--
Finlay Dobbie
_______________________________________________
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.
_______________________________________________
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: 
 >Re: NSBeginAlertSheet and (void*)contextInfo (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Development Tools with Jaguar?
  • Next by Date: Re: NSBeginAlertSheet and (void*)contextInfo
  • Previous by thread: Re: NSBeginAlertSheet and (void*)contextInfo
  • Next by thread: Re: NSBeginAlertSheet and (void*)contextInfo
  • Index(es):
    • Date
    • Thread