Re: Modal Window for NSTextField

2012-01-03 Thread Graham Cox
On 03/01/2012, at 8:29 PM, Dany Golubitsky wrote: > Calling for TextField and waiting for return value. > Getting return value in some other place is not an option. It simply doesn't work that way. In fact there's almost no code in Cocoa that does work that way, with the possible exception o

Re: Modal Window for NSTextField

2012-01-03 Thread Fritz Anderson
On 3 Jan 2012, at 3:29 AM, Dany Golubitsky wrote: > I am sorry, I am new to Cocoa and some things that looks completely obvious > to you are completely unknown to me. > (controlTextDidEndEditing: notification) - What is this function, where > should it be implemented, who should call it? It is

RE: Modal Window for NSTextField

2012-01-03 Thread Dany Golubitsky
- From: cocoa-dev-bounces+danyg=waves@lists.apple.com [mailto:cocoa-dev-bounces+danyg=waves@lists.apple.com] On Behalf Of Seth Willits Sent: Monday, January 02, 2012 20:28 To: cocoa-dev cocoa-dev Subject: Re: Modal Window for NSTextField On Jan 2, 2012, at 4:02 AM, Dany Golubitsky wrote

Re: Modal Window for NSTextField

2012-01-02 Thread Seth Willits
On Jan 2, 2012, at 4:02 AM, Dany Golubitsky wrote: > // Make the text field "in focus", and start an editing session on it > [textField becomeFirstResponder]; -becomeFirstResponder is a notification method for when the responder becomes first responder; it doesn't *make* it first responder. For

Re: Modal Window for NSTextField

2012-01-02 Thread Michael Babin
On Jan 2, 2012, at 9:22 AM, Dany Golubitsky wrote: > Thank you! > > As for field editor - can it appear and disappear during runtime? Indeed, I > do not familiar with this approach. "The field editor is a single NSTextView object that is shared among all the controls in a single window, includ

RE: Modal Window for NSTextField

2012-01-02 Thread Dany Golubitsky
? -Original Message- From: Michael Babin [mailto:mba...@orderndev.com] Sent: Monday, January 02, 2012 16:10 To: Dany Golubitsky Cc: cocoa-dev@lists.apple.com Subject: Re: Modal Window for NSTextField On Jan 2, 2012, at 6:02 AM, Dany Golubitsky wrote: > I need to implement the following th

Re: Modal Window for NSTextField

2012-01-02 Thread Michael Babin
On Jan 2, 2012, at 6:02 AM, Dany Golubitsky wrote: > I need to implement the following thing: > There is a control displaying numeric value. When you Double-Click on a > control small white window appears where you can enter the value, and when > you press enter the value will be updated. > You