Re: Disable Text Replacement
Re: Disable Text Replacement
- Subject: Re: Disable Text Replacement
- From: Andy Lee <email@hidden>
- Date: Tue, 10 Feb 2015 21:30:07 -0500
On Feb 10, 2015, at 11:42 AM, Andreas Höschler <email@hidden> wrote:
> What puzzles me is that [self respondsToSelector:@selector(setAutomaticQuoteSubstitutionEnabled:)] returns NO!? How can this be?
It can't, assuming self is an NSTextView (or, as you seem to be using, a subclass of NSTextView).
How do you know the above returns NO? Are you using NSLog to print it? If so, also log what self is, something like this:
NSLog(@"%@ %d", [self className], [self respondsToSelector:@selector(setAutomaticQuoteSubstitutionEnabled:)]);
I subclassed NSTextView and the above NSLog printed this:
2015-02-10 21:27:21.747 MyApp[69306:303] MyTextView 1
--Andy
_______________________________________________
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