• 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: Defaulting new entity fields to be same as current selection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defaulting new entity fields to be same as current selection?


  • Subject: Re: Defaulting new entity fields to be same as current selection?
  • From: Rick Mann <email@hidden>
  • Date: Sat, 31 May 2008 10:45:22 -0700


On May 31, 2008, at 07:30:16, I. Savant wrote:

Can I get at that from within -awakeFromInsert?

Yes, through some incredible acrobatics, you probably could, but then that would be like walking right up to the MVC design pattern and b**ch-slapping it right in the face. ;-)

Yes, of course.

Must I create my own -add?

Yes. The best place to put this custom -add: action is up to you and your design (as long as it's in a controller), but NSObjectController (such as NSArrayController or NSTreeController) in charge of the Foo instances, I'd do it this way:


That's the approach I ended up taking. To save time (I need to actually use this little app starting today), I did it all in my document subclass.

Thanks for confirming I did it "right!"

--
Rick

_______________________________________________

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


References: 
 >Defaulting new entity fields to be same as current selection? (From: Rick Mann <email@hidden>)
 >Re: Defaulting new entity fields to be same as current selection? (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: KVO: I get called on change, but then can't get the object
  • Next by Date: Re: runloops and NSURLConnection
  • Previous by thread: Re: Defaulting new entity fields to be same as current selection?
  • Next by thread: Problem in continuing display time
  • Index(es):
    • Date
    • Thread