• 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: How to include a framework in a custom IB Palette
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to include a framework in a custom IB Palette


  • Subject: Re: How to include a framework in a custom IB Palette
  • From: Ricky Sharp <email@hidden>
  • Date: Tue, 09 May 2006 07:28:15 -0500

On Tuesday, May 09, 2006, at 06:59AM, R Dearlove <email@hidden> wrote:

>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 ?


You'll find that when running in IB, you really don't need do execute the same exact code as when your app is running.

What is often done in palettes is to wrap certain interfaces/implementations with #ifdefs.  Put a #define in the palette's precomp header file to control the compilation.

--
Rick Sharp
Instant Interactive(tm)

 _______________________________________________
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: How to include a framework in a custom IB Palette
      • From: R Dearlove <email@hidden>
References: 
 >How to include a framework in a custom IB Palette (From: R Dearlove <email@hidden>)

  • Prev by Date: How to include a framework in a custom IB Palette
  • Next by Date: Re: Clip/ScrollView image scrambling
  • Previous by thread: How to include a framework in a custom IB Palette
  • Next by thread: Re: How to include a framework in a custom IB Palette
  • Index(es):
    • Date
    • Thread