Re: Switching out an NSTextField's NSTextStorage
Re: Switching out an NSTextField's NSTextStorage
- Subject: Re: Switching out an NSTextField's NSTextStorage
- From: Douglas Davidson <email@hidden>
- Date: Thu, 4 Mar 2004 15:45:57 -0800
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.