• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using Custom Data types in EOModeler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Custom Data types in EOModeler


  • Subject: Re: Using Custom Data types in EOModeler
  • From: Giorgio Valoti <email@hidden>
  • Date: Wed, 17 Sep 2003 22:02:04 +0200

On Mercoledl, set 17, 2003, at 16:03 Europe/Rome, Merul Patel wrote:

Hi,

Can anyone offer some advice or up to date documentation links for using EOModeler to assign an attribute to a custom Java class?

I'm trying to store a NSDictionary object into my database, and had hoped to be able to assign suitable Factory and Conversion methods, but it seems this isn't possible without defining my own custom class extending NSDictionary, since NSDictionary does have any methods that can act of NSString or NSData to instantiate an NSDictionary.

The only reference I found is located in the EOAttribute's JavaDoc. That said, I'd use composition instead of inheritance, i.e. your custom data type should implement the factory and conversion methods, say with NSPropertyListSerialization and use an NSDictionary as a storage object.


HTH

--
Giorgio Valoti
-------------
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Using Custom Data types in EOModeler (From: Merul Patel <email@hidden>)

  • Prev by Date: Re: NSNumberFormatter & NSTimestamp -- Not Happening
  • Next by Date: Re: NSNumberFormatter & NSTimestamp -- Not Happening
  • Previous by thread: Re: Using Custom Data types in EOModeler
  • Next by thread: Euro Symbol In An NSArray -- how d'you do it?
  • Index(es):
    • Date
    • Thread