Re: Calling processPendingChanges from awakeFromInsert
Re: Calling processPendingChanges from awakeFromInsert
- Subject: Re: Calling processPendingChanges from awakeFromInsert
- From: Mike Burns <email@hidden>
- Date: Thu, 20 Sep 2007 18:09:20 -0400
On Sep 20, 2007, at 5:20 PM, Jim Correia wrote:
Setting the initial values in -awakeFromInsert is a reasonable
thing to do. Why are you trying to disable undo registration though?
BTW, if there is really only ever one instance of Project in a
document, it seems odd to model a relationship between every
WBObject and the project; the modeled relationship doesn't appear
to be providing any new or useful information to the object graph.
Jim
If I don't disable undo registration when the user attempts to undo
after creating a new WBObject they undo the setting of the project
relationship first. (They have to undo twice to actually undo the
creation of the WBObject itself). I want the setting of the initial
values to be grouped with the creation of the WBObject as far as the
undo manager is concerned.
As for the second part of your response, there are certain values
that reside in the project object that need to be accessed by the
WBObject's at some point.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden