• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TextView cannot Use Selection for Find
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextView cannot Use Selection for Find


  • Subject: Re: TextView cannot Use Selection for Find
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sat, 07 Apr 2012 18:08:57 +0700

On 7 Apr 2012, at 17:32, Stephane Sudre wrote:

> On Sat, Apr 7, 2012 at 10:23 AM, Gerriet M. Denkmann
> <email@hidden> 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 (email@hidden)

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:

This email sent to email@hidden


References: 
 >TextView cannot Use Selection for Find (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: TextView cannot Use Selection for Find (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: TextView cannot Use Selection for Find
  • Next by Date: Re: Can't get UTI to stick
  • Previous by thread: Re: TextView cannot Use Selection for Find
  • Next by thread: Problem with Scripting Bridge under Snow Leopard
  • Index(es):
    • Date
    • Thread