discuss-gnustep
[Top][All Lists]
Advanced

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

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


From: Christopher Culver
Subject: Sizing an NSBrowser (and why "sizeToFit" wreaks havoc)
Date: Wed, 11 Jun 2003 00:46:42 +0300

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?

I'm running the current unstable libs (1.7.0 and 0.8.6).

Christopher





reply via email to

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