Re: RegEx in cocoa, and where to dl PB+IB?
Re: RegEx in cocoa, and where to dl PB+IB?
- Subject: Re: RegEx in cocoa, and where to dl PB+IB?
- From: David Rehring <email@hidden>
- Date: Sun, 28 Apr 2002 01:34:55 -0700
On 4/27/02 10:20 PM, Cryx at email@hidden wrote:
>
>> You can use these to substitute your own editor subclass with a
>
>> keyDown method. In my own case, it proved to be much simpler to use a
>
>> plain NSTextField and catch the keyDown events.
>
>
>
> I'd like a text field which can scroll vertically. NSTextField doesn't
>
> appear to have that capability. Or am I missing something obvious?
>
>
Sigh. I wanted vertical scrolling on my text field too, but I was
>
willing to sacrifice it to process keystrokes. I figure I'll implement
>
my own scrolling on a text field some day, unless someone else who has
>
accomplished the same task can provide guidance.
Could you possibly want an NSTextView instead of an NSTextField? It's in
the Cocoa Data Views palette...
I believe the delegate of NSTextView gets to process text before it's
actually added.
>
> Also, on a related note, where is the scrollbar control in IB? Don't
>
> tell me there is none!
>
>
There is, but it's not obvious: use a "custom view" and change its
>
class to NSScroller.
There's also the menu item: Layout->Make subviews of->Scroll View
Later,
--
David Rehring Psychos do not explode when light hits
Senior Software Engineer them, no matter how crazy they are...
Atimi Software, Inc.
www.atimi.com And totally insane guy!
_______________________________________________
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.