• 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: Switching out an NSTextField's NSTextStorage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switching out an NSTextField's NSTextStorage


  • Subject: Re: Switching out an NSTextField's NSTextStorage
  • From: Glen Simmons <email@hidden>
  • Date: Fri, 5 Mar 2004 08:30:49 -0600

Doh! I meant NSTextView. So, original question with NSTextView. Suggestions?

Glen

On Mar 4, 2004, at 5:45 PM, Douglas Davidson wrote:

On Mar 4, 2004, at 1:52 PM, Glen Simmons wrote:

I have a utility panel with an NSTextField that displays stuff related to the front window. When the user switches windows, I'd like to switch out the NSTextStorage to reflect stuff about the new window. The reason for the switching is that, as the user interacts with the window, more stuff is added. So, it seemed reasonable for each window controller to keep track of its own storage, and I figured if the window controller added directly to the NSTextStorage, life would be easier. But, it's not working well. I'm using NSLayoutManager's -replaceTextStorage: method to switch them out, but after a couple of switches things are broken. Suggestions?

An NSTextField doesn't have a text storage; it just has a value. Maybe setStringValue:?

Douglas Davidson
_______________________________________________
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.
_______________________________________________
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: 
 >Switching out an NSTextField's NSTextStorage (From: Glen Simmons <email@hidden>)
 >Re: Switching out an NSTextField's NSTextStorage (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: OS X 10.3.x, Address Book, and initWithVCardRepresentation
  • Next by Date: Re: Capture "Space" key event
  • Previous by thread: Re: Switching out an NSTextField's NSTextStorage
  • Next by thread: Custom window w/close
  • Index(es):
    • Date
    • Thread