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

Switching out an NSTextField's NSTextStorage


  • Subject: Switching out an NSTextField's NSTextStorage
  • From: Glen Simmons <email@hidden>
  • Date: Thu, 4 Mar 2004 15:52:03 -0600

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?

TIA,
Glen
_______________________________________________
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.


  • Follow-Ups:
    • Re: Switching out an NSTextField's NSTextStorage
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Apple Releases HeaderDoc 8 Public Beta with MPGL
  • Next by Date: Re: SFAuthorizationView - again...
  • Previous by thread: Apple Releases HeaderDoc 8 Public Beta with MPGL
  • Next by thread: Re: Switching out an NSTextField's NSTextStorage
  • Index(es):
    • Date
    • Thread