[Top][All Lists]

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

NSTabView small patch

From: Adrian Robert
Subject: NSTabView small patch
Date: Mon, 4 Oct 2004 10:48:46 -0400


In some recent experimentation I found that NSTabView does not handle the case where there are no tabs (it crashes). This is occasionally useful, e.g., when you have an interface with add/remove tab buttons and having no entries is a valid state. Testing on OS X revealed that Cocoa NSTabView handles this fine. So here is a 4-line patch to enable this behavior in NSTabView.

It has undergone some testing but could always use more. It is set to redraw itself (to blank) when the last tab is removed, matching OS X behavior.


Attachment: nsTabView_zeroTabs.patch
Description: Binary data

reply via email to

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