On Feb 7, 2006, at 9:09 AM, John Huss wrote:

Yeah, I'm just subclassing in code. I don't need to add any data, just override one method (hopefully).

        In your Application constructor, add:

NSNotificationCenter.defaultCenter().addObserver(this, new NSSelector("entityDidLoad", new Class[] {NSNotification.class}), EOModel.EntityLoadedNotification, null);

        In your Application class, add:

        public void entityDidLoad(NSNotification aNotification) {
                super.entityDidLoad(aNotification);
                EOEntity entityL = (EOEntity)aNotification.object();
                String entityNameL = entityL.name();
                
                if (entityNameL.equals(yourEOModelClassName)) {
                        entityL.setClassName(yourEOSubclassName);
                }
        }

Aloha,
Art

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to