Re: How to set default value for NSTextField from program before window is displayed?

2008-03-21 Thread Samvel Khalatian
: [nameField setStringValue: [buddiesArray objectAtIndex: 0]] in Controller init method. It does not produce desired effect. Still window shows up with empty nameField. How to change it initially? Thanks. On Mar 21, 2008, at 7:29 PM, Kyle Sluder wrote: On Fri, Mar 21, 2008 at 8:09 PM, Samvel

Re: How to set default value for NSTextField from program before window is displayed?

2008-03-21 Thread Samvel Khalatian
: [textField setStringValue:temp]; hope this helps you. On Mar 22, 2008, at 2:09 AM, Samvel Khalatian wrote: Hi, I am quite new in Cocoa programming and didn't understand yet how to set initial value for some NSTextField from program? Imagine I have a collection (Array of data, say, mates

Re: How to set default value for NSTextField from program before window is displayed?

2008-03-21 Thread Samvel Khalatian
to do setup there or later, such as applicationDidFinishLoading. Your code looks fine. - d On Mar 21, 2008, at 8:51 PM, Samvel Khalatian wrote: Ok. Application is extremely simple: Window with two buttons: Next and Prev - and one NSTextField (call it nameField) where my mates names