On Mar 2, 2012, at 12:35 , H. Miersch wrote:

> i have a problem with a text field that won't accept any input. the textfield 
> is one of three on a panel that appears only when the input is needed. I 
> activate the panel with this line:    [app beginSheet:Sheet 
> modalForWindow:mainWindow modalDelegate:self didEndSelector:NULL 
> contextInfo:nil];
> 
> in IB, behavior is set to editable, state is enabled. i've tried deleting the 
> textfield and replacing it with a new one, i've tried [textfield 
> setEditable:YES], but no joy. the textfield stubbornly refuses to accept any 
> input. when i click it, nothing happens. when i double-click it, any existing 
> characters are highlighted in grey instead of blue, and if i type anything, 
> that input goes to whatever was active before the double-click. i'm obviously 
> doing something wrong, but i have no idea what. can anyone point me in the 
> right direction?

Did you use a NSPanel for the sheet? Use a NSWindow instead, since NSPanels can 
have special first-responder behavior.


_______________________________________________

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

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

Reply via email to