• 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: insertText in NSOutlineView? (for Autolocator)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: insertText in NSOutlineView? (for Autolocator)


  • Subject: Re: insertText in NSOutlineView? (for Autolocator)
  • From: Carlos Weber <email@hidden>
  • Date: Sun, 19 May 2002 20:51:10 -1000

On Thursday, May 16, 2002, at 11:08 , Manfred Lippert wrote:

> Hi,
>
> I asked this question a few weeks ago, but got no answer.
> I am still trying to implement an "autolocator" for an NSOutlineView,
> but I
> had no success.
>
> I want the user to be able to type some characters, and if there are no
> more
> characters entered for a specific time, the NSOutlineView should "jump"
> to
> the specific entry (whose entry begins with the entered characters).
> Pretty the same way as the Finder does it (so there must be a way to do
> it).
>
> How can I do that?
>
> I tried to override "insertText" in my NSOutlineView subclass, but this
> is
> never called.
> keyDown is called, but insertText is never called.
>
> Now I tried to allocate an (invisible) NSTextField object when the
> NSOutlineView awakes from Nib and I hooked this NSTextField in the
> Responder
> chain right after the NSOutlineView.
> Result: NSTextField's keyDown is correctly called for all keys that are
> not
> handled by NSOutlineView, but also insertText is never called. Entered
> characters end in "beeps" just as they will without the NSTextField.
>
> Please help!
>
> How can I implement an autolocator in an NSOutlineView??
>
> Sure, I could filter "printable" keys (a-z) directly in the keyDown
> method,
> but this is a "hack" and then the autolocator will not work for special
> characters that require more than one key stroke (French characters with
> accent etc.). So it would be great if this works the "correct" way with
> help
> of the text input manager.
>
> Any hints?

See if this MacTech article by Mike Morton on delayed messaging gives
you any ideas; he's doing basically what you describe, but for an
NSTableView.

[demime 0.98b removed an attachment of type application/applefile which had a name of www.mactech.com:articles:mactech:Vol.14:14.12:DelayedMessaging:.webloc]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >insertText in NSOutlineView? (for Autolocator) (From: Manfred Lippert <email@hidden>)

  • Prev by Date: Re: Data-dependent slowdown of NSBezierPath
  • Next by Date: Re: Data-dependent slowdown of NSBezierPath
  • Previous by thread: Re: insertText in NSOutlineView? (for Autolocator)
  • Next by thread: How to set the backupDate of a symLink?
  • Index(es):
    • Date
    • Thread