• 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: didEndShouldCloseSheet]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: didEndShouldCloseSheet]


  • Subject: Re: didEndShouldCloseSheet]
  • From: Tomoo Kunikyo <email@hidden>
  • Date: Wed, 22 May 2002 23:42:50 +0900

Thank you Nicholas Riley and I understand as follows:

I have gotten LearningCocoaSample from O'REILLY
home page.

I found

@selector(didEndShouldCloseSheet:returnCode:contexInfo:)

on the Sanple and also on the page144 of Learning Cocoa
as a parameter for NSBeginAlertSheet method.

"didEndShouldCloseSheet" is defined here and I can use
"foo:(NSWindow *)foo bar:(int)bar baz:(void *)baz"
instead of "didEndShouldCloseSheet" as Nicholas Riley
suggests.

-------- Original Message --------

> On Sun, May 19, 2002 at 06:03:58PM +0900, Tomoo Kunikyo wrote:
> > Thank you Nicholas Riley for your kind answer.
> >
> > In the Local Machine Zone, I have found "NSBeginAlertSheet" method .
> But
> > the contents is "Discussion forthcoming" and I could not understand.
> > The document may be old.
>
> It probably is; try upgrading to the April 2002 development tools if
> you want (although PB 2.0 is not localized into Japanese yet, if this
> is a problem for you).
>
> > Where can I find "didEndShouldCloseSheet" method ?
>
> Again, the method is 'didEndShouldCloseSheet:returnCode:contextInfo'.
> It is a method, specified using its selector with @selector(...) in
> the call to NSBeginAlertSheet. The name of the method does not
> matter, only the signature (types and order of parameters).
>
> > In the Internet Zone, I also have found "NSBeginAlertSheet". In the
> > Discussion, "didEndSelector" or "didDismissSelector" defined as
> > "sheetDidEnd" or "sheetDidDismiss" is found b
> ut "didEndShouldCloseSheet"
> > is not found.
>
> You can name it whatever you want. It happens that the example in the
> documentation uses sheetDidEnd:returnCode:contextInfo:
>
> sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode
> contextInfo:(void *)contextInfo;
>
> But you are welcome to call your method:
>
> foo:(NSWindow *)foo bar:(int)bar baz:(void *)baz;
>
> as long as the correct number of parameters, and their signatures
> (NSWindow *, int, void *) exist as above.
>
> --
> =Nicholas Riley |
> Pablo Research Group, Department of Computer Science and
> Medical Scholars Program, University of Illinois at Urbana-Champaign
> _______________________________________________
> 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.

  • Prev by Date: Re: Log key ...
  • Next by Date: Re: [Slightly OT] Suggestion for PB...
  • Previous by thread: Re: NSString comparing alphanumerically (with numbers)
  • Next by thread: Apple Events in Cocoa
  • Index(es):
    • Date
    • Thread