Re: Right way to build style sheets?
Re: Right way to build style sheets?
- Subject: Re: Right way to build style sheets?
- From: Max Seelemann <email@hidden>
- Date: Wed, 13 Nov 2002 21:04:41 +0100
Is it possible to have an NSTextView where users can edit attributes
but not text? I'm guessing not...
But yes, there is a way...
Set the TextViews delegate and override this function:
- (BOOL)textView:(NSTextView *)textView
shouldChangeTextInRange:(NSRange)affectedCharRange
replacementString:(NSString *)replacementString
you need just to return NO and the users won't be able to edit.
cheers
MAX
_______________________________________________
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.