Re: A question involving properties

2009-10-11 Thread Michael de Haan
On Oct 11, 2009, at 3:26 PM, Karolis Ramanauskas wrote: I think your exercise obscured your goal too much. I think you are correct...but in the end, I got what I wanted out of this. The reason I did this though, was that recently there has been a lot of discussion about the correct way

Re: A question involving properties

2009-10-11 Thread Karolis Ramanauskas
Cool, I'm quite a beginner myself, so this may be not quite correct... When you set up your user interface using interface builder and when the application launches the window it automatically allocates and initializes all the objects you placed on the window. *I never tried to replace those object

Re: A question involving properties

2009-10-11 Thread Michael de Haan
On Oct 11, 2009, at 2:35 PM, Karolis Ramanauskas wrote: OK, perhaps I am misunderstanding you, but if you are simply trying to set the label of the NSTextField you may wanna do this. Well...what I was **really** trying to do was get my head around using properties/ivars correctly :-) B

Re: A question involving properties

2009-10-11 Thread Karolis Ramanauskas
OK, perhaps I am misunderstanding you, but if you are simply trying to set the label of the NSTextField you may wanna do this. You do not need to allocate NSTextField programmatically, it will be loaded automatically. @interface TestAppDelegate : NSObject { NSTextField * _textField; } @proper

A question involving properties

2009-10-11 Thread Michael de Haan
May I indulge the group. In doing the Hillegass challenge of Chapter 18 ( creating a doc based app to draw ovals), detoured to get a deeper understanding to Apples Sketch-112, which in turn lead to properties and ivars, which lead to this little demo app to give me some more insight into ho