NSPopoverBehavior documentation mentions nonexistent cancel: selector

Originator:nriley
Number:rdar://13492031 Date Originated:24-Mar-2013 02:39 PM
Status:Open Resolved:
Product:Documentation Product Version:Xcode 4.6.1 (4H512)
Classification:Other Bug Reproducible:Not Applicable
 
In:

https://developer.apple.com/library/mac/#documentation/AppKit/Reference/NSPopover_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40010720-CH1-SW11

the description of NSPopoverBehaviorApplicationDefined mentions "You may consider implementing -cancel: to close the popover when the escape key is pressed."

The selector should be cancelOperation:, not cancel:.  It may also be helpful to mention that you need to implement the selector in a subclass of NSPopover.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!