• 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: CFPlugin & Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFPlugin & Cocoa


  • Subject: Re: CFPlugin & Cocoa
  • From: Mike Ferris <email@hidden>
  • Date: Mon, 5 Jul 2004 08:48:44 -0700

Try ".m" or else make sure that you're not letting the symbols CFPlugin
is going to be looking for get "mangled" by the C++ compiler.

CFPlugin is a C-based API and it expects the symbols its dealing with
to be C-style symbols, not C++ symbols. If you need to use C++
constructs, keep the .mm extension but make sure all the declarations
of your CFPlugin-visible stuff is surrounded by an extern "C" block.
If you're not using C++ at all, then its probably easier just to use
the ".m" (Objective-C) extension instead of ".mm" (Objective-C++).

Mike


Begin forwarded message:

> From: Rolando Abarca <email@hidden>
> Date: July 4, 2004 6:04:19 PM PDT
> To: email@hidden
> Subject: CFPlugin & Cocoa
>
> I'm developing an iTunes visual plugin, but I would like to use some
> objective-c code within it... is this possible?
> I tried changing the extension of my file to .mm and adding the Cocoa
> Framework (also adding a #import <Cocoa/Cocoa.h>). Besides that, I
> only added a few NSLog's entries. Before, my plugin loaded and worked,
> but now, it doesn't. Is it possible to use cocoa in a CFPlugin?...
> tia,
> --
> rolando -- [[ knowledge is empty, fill it ]] --
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >CFPlugin & Cocoa (From: Rolando Abarca <email@hidden>)

  • Prev by Date: Re: CFPlugin & Cocoa
  • Next by Date: Re: Initialising NSTableColumn ??? Continued from : Setting NSPopUpButtonCell Value from NSTable
  • Previous by thread: Re: CFPlugin & Cocoa
  • Next by thread: Core Image message list ?
  • Index(es):
    • Date
    • Thread