Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Temporarily Editable NSTextField



On Mon, 02 May 2005 15:05:17 -0700, Matt Neuburg <email@hidden> said:
>On Mon, 2 May 2005 12:29:43 -0400, Graham <email@hidden> said:
>>In the textDidEndEditing method I do: setEditable(false),
>>setDrawsBackground(false) and setBezeled(false), and in the context of
>>this method, those calls all work fine, but that method is only called
>>when enter is pressed. So to handle the ESC key I am listening for
>>keyUp events and when ESC key is pressed I call those same three
>>methods, but in this context they have no effect.
>
>Are you sure? I'm betting that it's working just fine - but the field editor
>is in the way so you can't see the NSTextField changing back to a
>non-editable appearance.

For the record (i.e. the archives): the OP tells me I was correct. m.

-- 
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.