Re: Two sheets related questions
Re: Two sheets related questions
- Subject: Re: Two sheets related questions
- From: Erik Buck <email@hidden>
- Date: Mon, 11 Jul 2005 20:43:58 -0400
On Jul 11, 2005, at 8:29 PM, Huibert Aalbers wrote:
Erick,
First let me thank you for replying so quickly and taking the time to
find a solution to my problem.
Regarding my first problem, I thought that it would be more elegant to
send an event because it would be processed independently of the
double-click event. However, your solution seems simple enough.
Regarding the second problem, I could not test your solution because
my day job requires me to use another OS, but I will test it later
today. I am not sure however that it will work. Have you tried your
solution with two or more documents opened at the same time (each with
their own sheet)?
Regards,
Huibert
Indeed, my solution does not work with multiple open documents
(although that isn't what you asked for :)
Just change the terminate: action to the following:
- (void)terminate:(id)dummy
{
[[NSApp orderedDocuments] makeObjectsPerformSelector:@selector
(closeMyCustomSheet:) withObject:nil];
[NSApp terminate:dummy];
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden