• 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: One-line TextViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One-line TextViews


  • Subject: Re: One-line TextViews
  • From: Scott Thompson <email@hidden>
  • Date: Fri, 14 May 2004 12:49:30 -0500

On May 13, 2004, at 7:30 PM, Ali Ozer wrote:

I'm trying to implement an text entry area that allows the user to edit short, one-line segments of "rich text".

Scott,
NSTextField method

- (void)setAllowsEditingTextAttributes:(BOOL)flag;

sounds like it will give you what you need... However, you will have to set this programmatically; there's no setting in IB.

That does, indeed sound exactly like what I'm looking for.

Another issue that I'd like to tackle, in the same bit of code, is changing another area of my window as the user enters and leaves the text fields he is tabbing through.

I know that I can get notifications within the class when a given text view becomes the key view. I don't see any way for someone outside of the class to get notifications when the current key responder changes. I found a message that is sent to a window's delegate when that window becomes the key window... but no messages when the key responder changes within a window.

Does such a mechanism exist?

Scott
_______________________________________________
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: 
 >One-line TextViews (From: Scott Thompson <email@hidden>)
 >Re: One-line TextViews (From: Ali Ozer <email@hidden>)

  • Prev by Date: Re: invalid operands to binary?
  • Next by Date: Re: invalid operands to binary?
  • Previous by thread: Re: One-line TextViews
  • Next by thread: Re: One-line TextViews
  • Index(es):
    • Date
    • Thread