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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to