Re: Equivalent to awakeFromInsertionInEditingContext: ?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sat Apr 10 2004 - 18:50:28 EDT

  • Next message: Mike Kienenberger: "Re: setting a relationship from the wrong DataContext"

    Aside from inheritance issues, functionality similar to
    "awakeFromInsertion" is achieved by overriding "setPersistenceState":

    public void setPersistenseState(int newState) {
            if(newState == PersistenceState.NEW) {
                    // do initialization
            }

            super.setPersistenseState(newState);
    }

    Andrus



    This archive was generated by hypermail 2.0.0 : Sat Apr 10 2004 - 18:50:32 EDT