Re: NSBeginAlertSheet and (void*)contextInfo
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.