On 7 Apr 2012, at 17:32, Stephane Sudre wrote: > On Sat, Apr 7, 2012 at 10:23 AM, Gerriet M. Denkmann > <gerr...@mdenkmann.de> wrote: >> I have a window with an NSTextView (inside a ScrollView). >> Everything works as expected, but when I select some text and do command-e >> it just beeps. >> Same for Find Next and Find Previous. >> (Edit → Find → has these commands grayed out). >> >> Using Find Bar or Find Panel makes no difference. Making it editable or not >> also not. >> >> How can I make this work? I have used NSTextView many times before, and they >> just did work. >> >> 10.7.3, Xcode 4.3.2. > > It looks like it beeps when there is no active selection or when the > textview is not the first responder.
Well, I can select a text in my textView. I can copy it. I can do command-f (brings up the Find Panel) and I can paste the string into the find-textField. And then the Find Next button works. But command-g does not. How can I check that the textview is the first responder or not? > > Might be worth checking if you don't have some validateMenuItem code > disabling these menu items too. Xcode tells me that there is no "validateMenuItem" in my code. I just created a new project, put a textView into the window. Everything works as expected. Then I added my NonWorking.xib to the new project (a window with a textView and some buttons and textFields). And everything works in it's textView as expected. Very mysterious indeed. Kind regards, Gerriet. _______________________________________________ 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