How to include a framework in a custom IB Palette
How to include a framework in a custom IB Palette
- Subject: How to include a framework in a custom IB Palette
- From: R Dearlove <email@hidden>
- Date: Tue, 9 May 2006 12:58:58 +0100
Hi, I've been creating 3 classes to make accessing mysql easier.
I have 1 subclass of NSTableView and 2 other subclasses of NSObject
( they handle the query and the connection ). I have been using the
Mysql frameworks from sourceforge.
I wanted to start making them into IB Palette widgets I could drop
into an app.
I've been following the Aaron Hillegass example. but it doesnt cover
what to do when your code accesses an external framework.
When I try and link the code I get the following error..
Building target “testmysqllink2” of project “testmysqllink2” — (1 error)
cd /Users/diddy/projects/cocoa/learn/testmysqllink2
/usr/bin/gcc-4.0 -o /Users/diddy/projects/cocoa/learn/
testmysqllink2/build/Debug/testmysqllink2.palette/Contents/MacOS/
testmysqllink2 -L/Users/diddy/projects/cocoa/learn/testmysqllink2/
build/Debug -F/Users/diddy/projects/cocoa/learn/testmysqllink2/build/
Debug -F/Users/diddy/projects/cocoa/learn/testmysqllink2 -filelist /
Users/diddy/projects/cocoa/learn/testmysqllink2/build/
testmysqllink2.build/Debug/testmysqllink2.build/Objects-normal/ppc/
testmysqllink2.LinkFileList -framework Cocoa -framework
testmysqllink2Framework -framework InterfaceBuilder -framework
SMySQL_bundled -arch ppc -bundle -mmacosx-version-min=10.4 -isysroot /
Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/ld: can't locate framework for: -framework
testmysqllink2Framework
collect2: ld returned 1 exit status
/usr/bin/ld: can't locate framework for: -framework
testmysqllink2Framework
I was doing some research and I see comments about forcing a bundle
to load a framework.
What steps could/should I take to get this to link together ?
Richard
_______________________________________________
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