Make "IKImageView: -imageWithOptions:" a public API
| Originator: | tj | ||
| Number: | rdar://20323751 | Date Originated: | 2015-03-27 |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | 10.5 and newer |
| Classification: | Major | Reproducible: | Always |
Summary:
Hi Apple Dev,
thanks for your time. I have been playing around with ImageKit and IKImageView lately, mostly by using your Demo Application:
https://developer.apple.com/library/mac/samplecode/IKImageViewDemo/Introduction/Intro.html
With that, I'm easily able to load a random image into the IKImageView and annotate it using the built-in annotation tool. However, I have not been able to actually save the image *with* the annotation I drew on the IKImageView, though I HAVE been able to get the image with the annotations done by using the undocumented API call on IKImageView: -imageWithOptions:. As I'm targeting the Mac App Store, I cannot use this in my app.
The documentation says nothing about how to either get the image with annotation or how to get the annotations itself to apply them on the image manually at all, I fear:
https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/IKImageView/index.html#//apple_ref/occ/cl/IKImageView
I'm asking you to consider to make the IKImageView: -imageWithOptions: API public or update the ImageKit documentation on how to access the annotations so I could implement this on my own.
Thank you very much!
Steps to Reproduce:
Use Apple provided demo project: https://developer.apple.com/library/mac/samplecode/IKImageViewDemo/Introduction/Intro.html
Go to:
- (void)savePanelDidEnd: (NSSavePanel *)sheet
returnCode: (NSInteger)returnCode
in Controller.m
Line 245: image = [_imageView image];
The image property does not contain the annotated image from the IKImageView, but only the image without the annotations, as described above.
Expected Results:
The image property either contains the image will all annotations, or IKImageView: -imageWithOptions: is a public API.
Actual Results:
The image property does not contain the image with all annotations, and IKImageView: -imageWithOptions: is a private API.
Version:
Notes:
Configuration:
OS X 10.5 and up (according to the docs)
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!