• 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: 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.

References: 
 >NSBeginAlertSheet and (void*)contextInfo (From: Famille GOUREAU-SUIGNARD <email@hidden>)

  • Prev by Date: Re: NSBeginAlertSheet and (void*)contextInfo
  • Next by Date: Re:NSTextField with custom cell - is it even possible?
  • Previous by thread: Re: NSBeginAlertSheet and (void*)contextInfo
  • Next by thread: NSTextField with custom cell - is it even possible?
  • Index(es):
    • Date
    • Thread