• 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: Brian Ganninger <email@hidden>
  • Date: Sat, 28 Jan 2006 20:26:04 -0600

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: This email sent to email@hidden
  • Follow-Ups:
    • Re: Using Evan Schoemberg's Custom tabs
      • From: Andrea Salomoni <email@hidden>
References: 
 >Using Evan Schoemberg's Custom tabs (From: Andrea Salomoni <email@hidden>)

  • Prev by Date: Re: Forcing a table row to redraw
  • Next by Date: KVC broken in 10.4.4 on Intel?
  • Previous by thread: Using Evan Schoemberg's Custom tabs
  • Next by thread: Re: Using Evan Schoemberg's Custom tabs
  • Index(es):
    • Date
    • Thread