[Top][All Lists]

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

Re: NSTabView Fix

From: Andreas Höschler
Subject: Re: NSTabView Fix
Date: Sat, 24 Feb 2007 13:54:27 +0100

and we need to make sure these two match in some way. And what I tried to do was just this. If I failed on doing so, please show me my > wrongs.

Create a tabView and add four tabViewItems. _selected_item will be 4. Then call selectedTabViewItem! Boohm!!!

So what? Fred's change looked okay to me (and still looks so). The point is just that NSTabView fails to initialize the _selected_item instance variable
properly. Adding the line
  _selected_item = NSNotFound;
in -initWithFrame: should fix this issue.

If NSNotFound is and will stay defined as -1 then YES! Can we build on that?

Sorry (to Fred), I haven't looked for a fix for the fix yesterday. I just discovered that the modification broke my code and therefore rolled back to the older implementation. I suppose _selected_item = -1; in the init method will do the trick.



reply via email to

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