• 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: Right way to build style sheets?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Right way to build style sheets? (From: Steve Mykytyn <email@hidden>)

  • Prev by Date: Right way to build style sheets?
  • Next by Date: Re: Cocoa WebObjects
  • Previous by thread: Right way to build style sheets?
  • Next by thread: Re: Right way to build style sheets?
  • Index(es):
    • Date
    • Thread