NSStateMarker(NSNotApplicableMarker) should implement NSCoding
| Originator: | stephan.michels | ||
| Number: | rdar://14311224 | Date Originated: | 29-Jun-2013 07:55 AM |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | |
| Classification: | Enhancement | Reproducible: | Always |
Summary: The _NSStateMarker like NSNotApplicableMarker should implement NSCoding, so that they can be used for example over NSConnections. Steps to Reproduce: SMLog(@"NSNotApplicableMarker=%@(%@)", NSNotApplicableMarker, NSStringFromClass([NSNotApplicableMarker class])); NSData *data = [NSKeyedArchiver archivedDataWithRootObject:NSNotApplicableMarker]; SMLog(@"coded object: %@", [NSKeyedUnarchiver unarchiveObjectWithData:data]); Expected Results: I would expect that the state markers can be encoded. Actual Results: Actually they can't be encoded: <SMAppDelegate.m:40> NSNotApplicableMarker=<NOT APPLICABLE MARKER>(_NSStateMarker) 2013-06-29 07:47:05.027 InterfaceInspector[37381:303] -[_NSStateMarker encodeWithCoder:]: unrecognized selector sent to instance 0x100316e80 2013-06-29 07:47:05.031 InterfaceInspector[37381:303] -[_NSStateMarker encodeWithCoder:]: unrecognized selector sent to instance 0x100316e80 2013-06-29 07:47:05.032 InterfaceInspector[37381:303] *** -[NSKeyedArchiver dealloc]: warning: NSKeyedArchiver deallocated without having had -finishEncoding called on it.
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!