[Adium-devl] Tab bug?

Ari Johnson iamtheari at gmail.com
Wed Apr 18 05:54:42 UTC 2007


On 4/17/07, Kent Sutherland <kent.sutherland at gmail.com> wrote:
> Well, it didn't work out as well as I had hoped. Moving setting
> _awakenedFromNib cause more trouble than it fixed after testing. So
> back to the drawing board I go :)
>
> The main part of the problem is that PSMTabBarControl starts out with
> hideForSingleTab off, so Adium and PSMTabBarControl do a little dance
> so that everything is positioned properly off that assumption. If you
> change the default value of hideForSingleTab in the PSMTabBarControl
> you can solve the problem, but it causes trouble elsewhere - in
> applications that are already relying on PSMTabBarControl to behave a
> certain way. I don't see an easy fix yet, but I'll get this problem
> stomped somehow :)

Kent:

Not sure if you have any need for this, but if it saves any duplicated
effort I'm happy to help.  Attached is a patch and three files needed
to make the sample PSMTabBarControl application respond to:
tell application "TabBarControlDemo"
  newWindow
end tell

I also changed the new window code of the demo app to only have one
tab and to hide the tab bar when there's only one tab by default.  I
also notice an artifact after giving the window focus, but that may be
due to the fact that I played with the .nib a bit (just to remove the
redundant tab bar).  See http://hermes.theari.com/~ari/psmartifact.png
to see what I mean.

Ari
-------------- next part --------------
A non-text attachment was scrubbed...
Name: psmscript.diff
Type: application/octet-stream
Size: 7917 bytes
Desc: not available
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070418/402ed71d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NewWindowCommand.h
Type: application/octet-stream
Size: 273 bytes
Desc: not available
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070418/402ed71d/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NewWindowCommand.m
Type: application/octet-stream
Size: 201 bytes
Desc: not available
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070418/402ed71d/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TabBarControlDemo.sdef
Type: application/octet-stream
Size: 431 bytes
Desc: not available
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070418/402ed71d/attachment-0003.obj>


More information about the devel mailing list