Re: Modal Window for NSTextField
Re: Modal Window for NSTextField
- Subject: Re: Modal Window for NSTextField
- From: Graham Cox <email@hidden>
- Date: Wed, 04 Jan 2012 15:24:30 +1100
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 of NSAlert.
Read the documentation about the "field editor" and how it works, and how it is used by controls such as NSTextField. It's not especially complicated, but it's not as simplistic as you are assuming. Blindly throwing your own misconceptions about how the framework works at the problem will certainly lead to disappointment and frustration.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden