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

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


  • Follow-Ups:
    • Re: performclose vs close
      • From: "Ahmet Taha Sakar" <email@hidden>
References: 
 >performclose vs close (From: "Ahmet Taha Sakar" <email@hidden>)

  • Prev by Date: NSArrayController, saving and reloading sort descriptors
  • Next by Date: Using math.h
  • Previous by thread: performclose vs close
  • Next by thread: Re: performclose vs close
  • Index(es):
    • Date
    • Thread