Yes, you can. Only thing is you need to convert UIImage object to NSData
object. There are two C APIs

   - 
UIImageJPEGRepresentation<http://developer.apple.com/iPhone/library/documentation/UIKit/Reference/UIKitFunctionReference/Reference/reference.html#//apple_ref/c/func/UIImageJPEGRepresentation>
   - 
UIImagePNGRepresentation<http://developer.apple.com/iPhone/library/documentation/UIKit/Reference/UIKitFunctionReference/Reference/reference.html#//apple_ref/c/func/UIImagePNGRepresentation>

which you can use to get NSData object of UIImage object. As you know,
NSData in compliant to NSCoding protocol, you can achieve your objective.
Hope this helps.

~Parag

On Sun, Aug 9, 2009 at 4:31 PM, Shlok Datye <li...@codingturtle.com> wrote:

> Look for these classes in the documentation. If they conform to the
> NSCoding protocol they can be archived. If they don�t, they can�t, and you
> might be able to find something useful by googling for "SomeClass NSCoding".
>
>
> Shlok Datye
> Coding Turtle
> http://codingturtle.com
>
>
>  On 09.08.2009, at 10:25, M.S. Hrishikesh wrote:
>
> Can I use the same method for UIImage or NSImage also?
>>
>>
>> On 09/08/09 3:48 PM, Shlok Datye wrote:
>>
>>> Create an attribute of type "Binary Data". Encode your anArray of strings
>>> into an NSData using something like "NSData *arrayData = [NSArchiver
>>> archivedDataWithRootObject:anArray];". Finally, put arrayData into the
>>> attribute.
>>>
>>> Shlok Datye
>>> Coding Turtle
>>> http://codingturtle.com
>>>
>>>
>>> On 09.08.2009, at 09:48, M.S. Hrishikesh wrote:
>>>
>>> I created an Entity called MyPlaces. I want to store a number of strings
>>>> inside MyPlaces. How do I create an attribute to hold an array of strings? 
>>>> I
>>>> know how to create an Attribute to hold a single string but I need to hold
>>>> an array of strings.
>>>>
>>>> One way is to create another Entity called PlaceName. PlaceName will
>>>> have an attribute of type String. I will then make a to-many relationship
>>>> from MyPlaces to PlaceName. But this seems way too roundabout to solve my
>>>> problem. Is there an easier way?
>>>>
>>>>
>>>> Thanks
>>>> Hrishi
>>>>
>>>
>
> _______________________________________________
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/parag.vibhute%40gmail.com
>
> This email sent to parag.vibh...@gmail.com
>



-- 

There are many things in your life that will catch your eye but only a few
will catch your heart....pursue those'.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to