discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sizing an NSBrowser (and why "sizeToFit" wreaks havoc)


From: Adam Fedor
Subject: Re: Sizing an NSBrowser (and why "sizeToFit" wreaks havoc)
Date: Mon, 23 Jun 2003 21:22:34 -0600
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.1) Gecko/20020905



Christopher Culver wrote:
I have a single-column NSBrowser instance. I would like to automatically size it to that its width is as long as the longest string within its cells. How do I do that? (I want its height to remain fixed, just the width to expand).

Incidentally, I tried calling [browserInstance sizeToFit]. This caused my machine to go under heavy load and start swapping. I was lucky I could restart the damn thing. I was able to trace this exactly to this instruction. Is one not supposed to call sizeToFit on an NSBrowser instance? If not, then why does the application compile fine when this instruction is present?


NSBrowser doesn't properly override -[NSControl sizeToFit]. That should be fixed. However, I'm not sure what it should do. Maybe someone can test what happens on OSX or something...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]