NSCell does not implement methods declared in NSTextAttachmentCell protocol
| Originator: | lithium3141 | ||
| Number: | rdar://13903643 | Date Originated: | 15-May-2013 02:02 PM |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | OS X 10.8.3 (12D78) |
| Classification: | Other Bug | Reproducible: | Always |
15-May-2013 02:: Summary: The NSTextAttachmentCell protocol reference states that NSCell implements all but . NSCell does not actually implement most of those methods. Steps to Reproduce: 1. Create a new Cocoa application (or any app that links AppKit). 2. Call [[NSCell class] instancesRespondToSelector:@selector(cellFrameForTextContainer:proposedLineFragment:glyphPosition:characterIndex:)] Expected Results: The call to +instancesRespondToSelector: returns YES. Actual Results: The call to +instancesRespondToSelector: returns NO. Regression: Unknown. Notes: NSCell does not actually declare conformance to NSTextAttachmentCell (with good reason, since it is documented to not implement 's methods); however, it also does not redeclare or describe a significant portion of those methods as that protocol's documentation states. Sample code is attached. 15-May-2013 02:: 'nscell-textattachment-selectors.m' was successfully uploaded [ed. note: code at https://gist.github.com/lithium3141/5587371]
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!