Re: Silly question
Re: Silly question
- Subject: Re: Silly question
- From: Lou <email@hidden>
- Date: Fri, 21 Dec 2001 12:23:24 +0100
Perhaps you could use sheetDidEnd:returnCode:contextInfo: like in
NSBeginAlertSheet(title, defaultButton, alernateButton, otherButton,
mainWindow, self, @selector(sheetDidEnd:returnCode:contextInfo:), nil, nil,
message);
with sheetDidEnd:returnCode:contextInfo: which does nothing...
-(void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode
contextInfo:(void *)contextInfo
{
}
I hope this help...
ly3
>
De : Riccardo Santato <email@hidden>
>
Date : Thu, 20 Dec 2001 19:41:45 +0100
>
@ : Cocoa <email@hidden>
>
Objet : Re: Silly question
>
>
On Thursday, December 20, 2001, at 03:09 PM, Ondra Cada wrote:
>
>
>
> There were some services in AppKit to make an alert panel, display it,
>
> but
>
> (unlike NSRunAlertPanel) *not* wait till it is closed. Something in
>
> lines of
>
> NSCreateAlertPanel, or similar. I haven't used them for ages and can't
>
> have a
>
> look just now, so try AppKit functions, and perhaps NSApplication docs.
>
>
Probably my bad english has stroke back again.
>
Here's a little more detailed explanation of what I am doing...
>
>
- (void) mySelector:(id) argument
>
{
>
if (condition)
>
{
>
NSBeginAlertSheet(...); // I use it with no selectors in
>
the arguments, so just to display an "OK" button and
>
// I wait for the user to click it and then...
>
>
exit from selector; // HERE is the problem... Is there
>
a way to quit from selector without
>
// hurting anybody ?
>
}
>
}
>
>
What function have I to use in order to quit from my selector ?
>
I hope the explanation is a little clearer now... :-))
>
>
--
>
Riccardo Santato
>
www.riccardosantato.com
>
_______________________________________________
>
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.