Re: -insertNewline: and -insertLineBreak:, using the shift key modifier
Re: -insertNewline: and -insertLineBreak:, using the shift key modifier
- Subject: Re: -insertNewline: and -insertLineBreak:, using the shift key modifier
- From: Ken Thomases <email@hidden>
- Date: Wed, 11 Jun 2008 17:18:53 -0500
On Jun 11, 2008, at 4:39 PM, Keith Blount wrote:
Thanks. Yes, I know I can access such methods via the delegate
method, but my text view is already heavily subclassed to add a lot
of new features anyway. Whilst I could achieve the same in a
delegate method, wherever it is, I was really wondering if there was
anything particularly *wrong* with intercepting -insertNewline:
(either by subclassing or in the delegate), checking for the shift
key, and calling -insertLineBreak: if it is held down.
It seems fine to me.
Many thanks again and all the best,
You're welcome.
Cheers,
Ken
_______________________________________________
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