• 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: Calling processPendingChanges from awakeFromInsert
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Calling processPendingChanges from awakeFromInsert
      • From: Jim Correia <email@hidden>
References: 
 >Calling processPendingChanges from awakeFromInsert (From: Michael Burns <email@hidden>)
 >Re: Calling processPendingChanges from awakeFromInsert (From: Jim Correia <email@hidden>)
 >Re: Calling processPendingChanges from awakeFromInsert (From: Michael Burns <email@hidden>)
 >Re: Calling processPendingChanges from awakeFromInsert (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Calling processPendingChanges from awakeFromInsert
  • Next by Date: new class
  • Previous by thread: Re: Calling processPendingChanges from awakeFromInsert
  • Next by thread: Re: Calling processPendingChanges from awakeFromInsert
  • Index(es):
    • Date
    • Thread