nagyistoce / maccode

Automatically exported from code.google.com/p/maccode
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

PSMTabBarControl: Framework and IBPlugin for 10.5+ (incl. project code) #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I just created some basic Leopard/IB3.x compatible IB PlugIn (PlugIn and
Framework) for PSMTabBarControl. It is an all new project created out of
the source files from this repository plus some additional code for the PlugIn.
It's 10.5+ only. It contains some additional bugfixes and another basic
style called "CardStyle". It is some kind of new branch. Perhaps it is
useful for someone at this stage too.

Original issue reported on code.google.com by mi...@monscheuer.de on 8 Feb 2010 at 12:36

Attachments:

GoogleCodeExporter commented 9 years ago
I get this when I try to load into IB:
The document “PSMTabBar.ibplugin” could not be opened. The bundle is 
damaged or missing necessary 
resources.  I'm using IB 3.2.1.  Any ideas?

Original comment by j.greg.a...@gmail.com on 29 Mar 2010 at 4:57

GoogleCodeExporter commented 9 years ago
I guess you tried to compile using the Debug configuration. You may use the 
Debug
compilation to run the PlugIn using XCode for debugging purposes.
If you finally want to load it into IB and use it for production, you have to 
compile
a Release Build and use the resulting file you will find in your Release folder.

Original comment by mi...@monscheuer.de on 29 Mar 2010 at 7:35

GoogleCodeExporter commented 9 years ago
Here comes an updated version.
Changes are:
- default configuration changed to Release
- a Memory leak has been resolved in -closeTabClick:

[sender release] has to be added if -tabView:shouldCloseTabViewItem: returns NO

Code:

if ([[self delegate] 
respondsToSelector:@selector(tabView:shouldCloseTabViewItem:)]) {
        if (![[self delegate] tabView:tabView shouldCloseTabViewItem:item]) {
            // fix mouse downed close button
            [sender setCloseButtonPressed:NO];
            [sender release];  <<<< ADDED BY MIMO
            return;
        }
}

Original comment by mi...@monscheuer.de on 29 Mar 2010 at 7:40

Attachments:

GoogleCodeExporter commented 9 years ago
I built this as a plugin and added it to Interface Builder with no problems, 
but when adding it to a window and 
then building the project (an otherwise empty project), the application builds, 
but just bounces on the dock. I'm 
using XCode 3.1.2 under OS X 10.5.8. Can anyone advise?

Original comment by totov...@googlemail.com on 13 May 2010 at 6:21