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