[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSTextField didn't change color on set...Color: while editing.
From: |
Ivan Vučica |
Subject: |
Re: NSTextField didn't change color on set...Color: while editing. |
Date: |
Wed, 7 Dec 2011 02:24:24 +0100 |
If I remember correctly, under OS X focusing a textfield generates a textview.
I don't know what happens under OS X. Try fetching your first responder and
drill your way back to the top of the responder hierarchy, inspecting the
responder classes along the way.
If you still have issues with this, fire off another mail and I'll send some
code I wrote for OS X that changes color of the text field based on validation
results for the currently entered text.
Poslano s mog iPad uređaja
3. 12. 2011., u 22:18, Bluna Ratimonkey <address@hidden> napisao:
> Hi,
> NSTextField didn't change color on set...Color: while editing, is that a bug?
>
> I have to hack like this to set the color directly
>
> [[[myTF window] fieldEditor:NO forObject:myTF] setBackgroundColor:color];
>
> Is that a correct way to hack it?
>
> Cheers,
> Bluna
>
> --
> /* Join Bluna Ratimonkey (漫画家) and build the real future for GNUstep ! */
> [@"http://mus3.sourceforge.net" setNeedsYourHelps:YES!!];
>
> _______________________________________________
> Gnustep-dev mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/gnustep-dev
- NSTextField didn't change color on set...Color: while editing., Bluna Ratimonkey, 2011/12/03
- Re: NSTextField didn't change color on set...Color: while editing.,
Ivan Vučica <=
- Message not available
- Re: NSTextField didn't change color on set...Color: while editing., Ivan Vučica, 2011/12/07
- Re: NSTextField didn't change color on set...Color: while editing., Bluna Ratimonkey, 2011/12/07
- Message not available
- Message not available
- Re: NSTextField didn't change color on set...Color: while editing., Bluna Ratimonkey, 2011/12/19
- Re: NSTextField didn't change color on set...Color: while editing., David Chisnall, 2011/12/19
- Re: NSTextField didn't change color on set...Color: while editing., Riccardo Mottola, 2011/12/19
- Re: NSTextField didn't change color on set...Color: while editing., Ivan Vučica, 2011/12/19
- Re: NSTextField didn't change color on set...Color: while editing., Bluna Ratimonkey, 2011/12/19
- Re: NSTextField didn't change color on set...Color: while editing., Fred Kiefer, 2011/12/20
- Re: NSTextField didn't change color on set...Color: while editing., Banlu Kemiyatorn, 2011/12/20
- Re: NSTextField didn't change color on set...Color: while editing., Richard Frith-Macdonald, 2011/12/21