Switching out an NSTextField's NSTextStorage
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.