Re: Connected Objects being allocated

2010-02-13 Thread Steven Degutis
I don't know anything about that book, but I've always recommended Aaron Hillegass's book on Cocoa Programming for Mac OS X, as it's what I used to learn how to code Cocoa code. http://www.bignerdranch.com/book/cocoa_programming_for_mac_os_x_3rd_edition -Steven On Sat, Feb 13, 2010 at 10:17 AM,

Re: Connected Objects being allocated

2010-02-13 Thread Donald Klett
Steven, Thanks for your analysis. I must admit I am still somewhat confused, but you have given me something to think about. And thanks to Henry McGilton for his reply. I have David Chisnall's book on Cocoa Programming, so I will try to understand your suggestion concerning using view and w

Re: Connected Objects being allocated

2010-02-12 Thread Steven Degutis
Don, Your first snippet of code is great and follows MVC just fine. However, your second snippet breaks away from proper MVC, in the vein of over-thinking your architecture. When in doubt, start simple and extend as needed. In your first snippet, your Controller class is a valid Controller in the

Re: Connected Objects being allocated

2010-02-12 Thread Henry McGilton (Boulevardier)
On Feb 12, 2010, at 1:31 PM, Donald Klett wrote: > Once again, I am not understanding some aspect of Objective C and/or Cocoa. > > I created a simple class that contains two NSTextField objects. I used IB to > connect the Controller object with the two text fields. The code follows. > This

Connected Objects being allocated

2010-02-12 Thread Donald Klett
Once again, I am not understanding some aspect of Objective C and/or Cocoa. I created a simple class that contains two NSTextField objects. I used IB to connect the Controller object with the two text fields. The code follows. This example runs correctly and does copy the value from one text