FROM : Gorazd Krosl
DATE : Mon Mar 10 22:02:20 2008
"If all the code you're using is present, it looks to
me like you're not releasing the object pointed at by
image; the object returned by imageWithData is not an
auto-released object."
I just checked documentation
(http://developer.apple.com/documentation/GraphicsImaging/Reference/QuartzCoreFramework/Classes/CIImage_Class/Reference/Reference.html#//apple_ref/occ/clm/CIImage/imageWithData:)
and it does not mention that a convenience method
+imageWithData: would return a retained object. And
there is -initWithData: which I think implies that as
with other Cocoa and similar frameworks based on ObjC
+somethingWithSometingOther: returns an autoreleased
instance while -initWithSomethingOther: is an
initializer returning non-autoreleased instance. If
this is different for CIImage it should be mentioned
in the docs.
Gorazd
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/
DATE : Mon Mar 10 22:02:20 2008
"If all the code you're using is present, it looks to
me like you're not releasing the object pointed at by
image; the object returned by imageWithData is not an
auto-released object."
I just checked documentation
(http://developer.apple.com/documentation/GraphicsImaging/Reference/QuartzCoreFramework/Classes/CIImage_Class/Reference/Reference.html#//apple_ref/occ/clm/CIImage/imageWithData:)
and it does not mention that a convenience method
+imageWithData: would return a retained object. And
there is -initWithData: which I think implies that as
with other Cocoa and similar frameworks based on ObjC
+somethingWithSometingOther: returns an autoreleased
instance while -initWithSomethingOther: is an
initializer returning non-autoreleased instance. If
this is different for CIImage it should be mentioned
in the docs.
Gorazd
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/
| Related mails | Author | Date |
|---|---|---|
| slasktrattenator | Mar 10, 17:33 | |
| slasktrattenator | Mar 10, 21:03 | |
| Gary L. Wade | Mar 10, 21:21 | |
| Brady Duga | Mar 10, 21:34 | |
| slasktrattenator | Mar 10, 21:58 | |
| Gorazd Krosl | Mar 10, 22:02 | |
| Rob Keniger | Mar 11, 04:46 | |
| slasktrattenator | Mar 11, 11:53 |






Cocoa mail archive

