FROM : Rick Mann
DATE : Sat May 31 19:45:22 2008
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
DATE : Sat May 31 19:45:22 2008
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
| Related mails | Author | Date |
|---|---|---|
| Rick Mann | May 31, 09:51 | |
| I. Savant | May 31, 16:30 | |
| Rick Mann | May 31, 19:45 |






Cocoa mail archive

