I'm having trouble getting my app to build again. For some reason,
when I add a file subclassed from NSView, like say an NSPathControl,
it doesn't seem to be able to find these classes. This problem started
happening after I loaded my application in a certain "preview release"
of a future xcode ide which I can't mention here.

I've tried cleaning all targets and gone back into my xcode 3.2.3
project settings to make sure nothing has changed, and as far as I can
tell everything is as it should be.

Anyone have an idea what I'm missing to get my app to building again?


Ld "/Users/srd/Projects/shared_builds/myapp.build/Release/myapp
Spotlight Importer.build/Objects-normal/x86_64/myapp" normal x86_64
cd /Users/srd/Projects/myapp
setenv MACOSX_DEPLOYMENT_TARGET 10.6
/Developer/usr/bin/gcc-4.2 -arch x86_64 -bundle -isysroot
/Developer/SDKs/MacOSX10.6.sdk
-L/Users/srd/Projects/myapp/build/Release
-F/Users/srd/Projects/myapp/build/Release -filelist
"/Users/srd/Projects/shared_builds/myapp.build/Release/myapp Spotlight
Importer.build/Objects-normal/x86_64/myapp.LinkFileList"
-mmacosx-version-min=10.6 -framework CoreFoundation -framework
CoreData -framework Foundation -framework CoreServices -o
"/Users/srd/Projects/shared_builds/myapp.build/Release/myapp Spotlight
Importer.build/Objects-normal/x86_64/myapp"

Undefined symbols:
  "_OBJC_CLASS_$_NSPathControl", referenced from:
      _OBJC_CLASS_$_NetworkPathControl in NetworkPathControl.o
  "_OBJC_METACLASS_$_NSPathControl", referenced from:
      _OBJC_METACLASS_$_NetworkPathControl in NetworkPathControl.o
ld: symbol(s) not found
collect2: ld returned 1 exit status


--- *.h
#import <Cocoa/Cocoa.h>

@interface NetworkPathControl : NSPathControl {

}

- (id)initWithFrame:(NSRect)frame;
- (void)drawRect:(NSRect)dirtyRect;

@end

--- *.m
#import "NetworkPathControl.h"

@implementation NetworkPathControl

- (id)initWithFrame:(NSRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code here.
    }
    return self;
}

- (void)drawRect:(NSRect)dirtyRect {
    // Drawing code here.
}

@end
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to