Re: performclose vs close
Re: performclose vs close
- Subject: Re: performclose vs close
- From: email@hidden
- Date: Wed, 14 Mar 2007 22:10:22 +0800
Hi,
Does the window have the standard close button, the red circle on the
top left corner?
If not, according to document, it won't be closed and the system beeps.
"If the receiver doesn’t have a close button or can’t be closed (for
example, if the delegate replies NO to a windowShouldClose: message),
the system beeps."
You might try to send -close instead, although they are slightly
different.
HTH,
James
On Mar 12, 2007, at 8:37 AM, Ahmet Taha Sakar wrote:
I have a nswindow on a second nib file. I have the window showing by
default. I have also created a button to close the window and
connected it
to the file owner of the nib. When I click on the button if I do
[mywindow
close] it closes the window. but if I do a [mywindow
performclose] it does
nothing. I need performclose for some delegate methods. Am I missing
something?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden