2

Just started leaning Cocoa and its dev env, libs, etc.

The error I'm getting:

"_IKImageBrowserNSImageRepresentationType", referenced from: 
-[ImageBrowserItem imageRepresentationType] in ImageBrowserItem.o
ld: symbol(s) not found

Any ideas on how to fix this error? This method (imageRepresentationType) is required per the IKImageBrowserItem protocol.

The files (.h and .m) that use it are defined thusly:

ImageBrowserItem.h:

#import <Cocoa/Cocoa.h>
#import <Quartz/Quartz.h>

@interface ImageBrowserItem : NSObject 
{
    NSImage *_image;
    NSString *_imageID;
}

@property (readwrite, copy) NSImage *_image;
@property (readwrite, copy) NSString *_imageID;

- (id) imageRepresentation; 
- (NSString *) imageUID;
- (NSString *) imageRepresentationType;

@end

ImageBrowserItem.m:

#import "ImageBrowserItem.h"

@implementation ImageBrowserItem

@synthesize _image;
@synthesize _imageID;

- (id)  imageRepresentation
{
    return _image;
}

- (NSString *) imageUID
{
    return _imageID;
}

// This method is causing the error. 
/*
  IKImageBrowserNSImageRepresentationType is a constant 
  defined in Apple's IKImageBrowserView.h.
*/
- (NSString *) imageRepresentationType
{
    return IKImageBrowserNSImageRepresentationType;
}

- (void) dealloc
{
    [_image release];
    [_imageID release];
    [super dealloc];
}
@end
adamellsworth
  • 361
  • 1
  • 3
  • 15

1 Answers1

2

Solved: To fix this, if you have this problem, add the Quartz framework as described here: http://developer.apple.com/library/mac/#DOCUMENTATION/GraphicsImaging/Conceptual/ImageKitProgrammingGuide/ImageKitComponents/ImageKitComponents.html#//apple_ref/doc/uid/TP40004907-CH3-SW4

adamellsworth
  • 361
  • 1
  • 3
  • 15