• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using Evan Schoemberg's Custom tabs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Evan Schoemberg's Custom tabs


  • Subject: Re: Using Evan Schoemberg's Custom tabs
  • From: Daniel Griffin <email@hidden>
  • Date: Tue, 31 Jan 2006 03:01:56 -0600


On Jan 29, 2006, at 7:25 AM, Ofri Wolfus wrote:

A modified version of PSMTabBarControl (created by John Pannell and modified by John itself and the ChatKit team) is available at ChatKit's subversion repository - http://svn01.23i.net/chatkit/ trunk/Utilities/PSMTabBarControl


I managed to get everything to compile but the IB palette. This method doesnt compile
- (void)ok:(id)sender
{
id object = [self object];
if([[sender title] isEqualToString:@"Metal"])
[object setStyle:[[[PSMSafariTabStyle alloc] init]autorelease]];
else
[object setStyle:[[[PSMAquaTabStyle alloc] init]autorelease]];
[super ok:sender];
}


The two object setStyle lines fail, I dont know what is supposed to be passed there and I have not been able figure out where setStyle is from. Has anyone else managed to get this to compile? Where does setStyle come from? What am i supposed to pass to it?

Thanks
Dan



Enjoy :)
- Ofri

On 29/01/2006, at 13:00, Andrea Salomoni wrote:

Hi and thank you for help,

Sorry for Evan's last name ... :) but was very late in Italy tonight when I wrote it and my mind was tired...
Where can I find the safari's tab system posted (without coding)?


Thank you for your kind help
Andrea

Il giorno 29/gen/06, alle ore 03:26, Brian Ganninger ha scritto:

Wouldn't the error here be that AppKit is not imported when NSImageView is a member of this framework? Try adding #import <AppKit/AppKit.h> or replace #import <Foundation/Foundation.h> with #import <Cocoa/Cocoa.h> which will import the umbrella framework containing both.

Additional notes:
- Evan's last name is Schoenberg :)
- This code, from Adium, is GPL'ed and you'll want to keep that in mind with regards to future application use
- A Safari-style tab system was recently posted on the list and is configurable in IB, no coding required :)


On Jan 28, 2006, at 7:05 PM, Andrea Salomoni wrote:

Hi to all,

I'm trying to implement Evan's custom tabs in a small test app.
I downloaded a small example called Custom Tabs and works fine (but there are two warnings).
I imported all the files and the images in my app, modified my prefix_header, but when I build the app there are 3 errors!


1- Parse error before NSImageView
2- Parse error before NSImage
3- fatal error : method definition not in the @implementation context


I not touched nothing... and in the example all works, but not in my app...
Anyone knows something about it?
I attach a small code where the compiler returns the errors:


#import <Foundation/Foundation.h>

@interface ESFloater : NSObject {
    NSImageView			*staticView;
    NSPanel				*panel;
    BOOL                windowIsVisible;
    NSTimer             *visibilityTimer;
    float               maxOpacity;
}

+ (id)floaterWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask;
- (void)moveFloaterToPoint:(NSPoint)inPoint;
- (IBAction)close:(id)sender;
- (void)endFloater;
- (void)setImage:(NSImage *)inImage;
- (NSImage *)image;
- (void)setVisible:(BOOL)inVisible animate:(BOOL)animate;
- (void)setMaxOpacity:(float)inMaxOpacity;


@end

Thank you all
Andrea
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40freeshell.org


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • PSMTabBarControl (was: Using Evan Schoemberg's Custom tabs)
      • From: Fritz Anderson <email@hidden>
References: 
 >Using Evan Schoemberg's Custom tabs (From: Andrea Salomoni <email@hidden>)
 >Re: Using Evan Schoemberg's Custom tabs (From: Brian Ganninger <email@hidden>)
 >Re: Using Evan Schoemberg's Custom tabs (From: Andrea Salomoni <email@hidden>)
 >Re: Using Evan Schoemberg's Custom tabs (From: Ofri Wolfus <email@hidden>)

  • Prev by Date: Re: NSTreeController - setEntityName only settable once??
  • Next by Date: A quick memory (release) question
  • Previous by thread: Re: Using Evan Schoemberg's Custom tabs
  • Next by thread: PSMTabBarControl (was: Using Evan Schoemberg's Custom tabs)
  • Index(es):
    • Date
    • Thread