Re: NSBeginAlertSheet and (void*)contextInfo
Re: NSBeginAlertSheet and (void*)contextInfo
- Subject: Re: NSBeginAlertSheet and (void*)contextInfo
- From: Richard Schreyer <email@hidden>
- Date: Sun, 21 Jul 2002 10:38:01 -0700
Others have explained that void* is simply a generic pointer. It can
refer to anything from an int to a struct to an object.
Because it can refer to more than just objects, be aware that the alert
sheet will NOT retain your object. If you should release it from
somewhere else in your code, you could have problems. You may want to
retain it in the startSheet method, and then release it in the endSheet
method to be sure it isn't pulled out from under you.
Richard Schreyer
On Saturday, July 20, 2002, at 10:20 PM, Famille GOUREAU-SUIGNARD wrote:
Hi,
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.
_______________________________________________
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.