IPB

Bienvenue invité ( Connexion | Inscription )

 
Reply to this topicStart new topic
> (Résolu) Obtenir un CFPlugInRef de moi même (Carbon)
Options
MacNiaque
posté 5 Dec 2008, 05:15
Message #1


Macbidouilleur d'Or !
*****

Groupe : Membres
Messages : 1 860
Inscrit : 21 Aug 2007
Lieu : Versailles
Membre no 93 067



Bonjour,

Je suis actuellement en train de développer un menu contextuel pour le Finder et j'aurais besoin d'accéder au bundle de mon plug in. Or, impossible d'utiliser un CFGetBundle qui me renvoi le bundle du Finder, il me faut donc utiliser un CFPlugInGetBundle qui demande comme argument un CFPlugInRef et c'est là mon problème : comment puis-je obtenir un CFPlugInRef de moi-même ?

Ce message a été modifié par MacNiaque - 5 Dec 2008, 19:25.


--------------------
iMac Alu 20" - 2.4GHz - HD2600 - RAM 4GO - DD 1TO - MacOS X.9 & X.6 - JBL Creature II - Brother HL2030 - Canon Lide 25
iMac 400DV Indigo - 256MO de ram - DD 80GO - MacOS X.3.9 + 9.2.2
PB 190/66 - RAM 8MO - DD 500MO - system 7.6.1 - CompactFlash en PCMCIA 128MO
iPod nano G3

SynchroAS, FanworOSX et d'autres sur MacNiaque.free.fr
Go to the top of the page
 
+Quote Post
schlum
posté 5 Dec 2008, 07:36
Message #2


Terminaltor
Moderating Machine
*****

Groupe : Admin
Messages : 24 449
Inscrit : 25 Oct 2002
Lieu : Jeumont (59)
Membre no 4 319



CFPlugInGetBundle c'est quand on charge le plugIn à partir du programme, ce qui n'est pas ton cas.

http://developer.apple.com/samplecode/Samp...n/listing1.html

CODE
CFStringRef bundleCFStringRef = CFSTR( "com.apple.SampleCMPlugIn" );
CFBundleRef myCFBundleRef = CFBundleGetBundleWithIdentifier( bundleCFStringRef );


--------------------
          I think therefore I Mac          
Go to the top of the page
 
+Quote Post
MacNiaque
posté 5 Dec 2008, 11:21
Message #3


Macbidouilleur d'Or !
*****

Groupe : Membres
Messages : 1 860
Inscrit : 21 Aug 2007
Lieu : Versailles
Membre no 93 067



Super, merci schlum.
Testé et ça marche impeccable; merci schlum :-)

Ce message a été modifié par MacNiaque - 5 Dec 2008, 19:25.


--------------------
iMac Alu 20" - 2.4GHz - HD2600 - RAM 4GO - DD 1TO - MacOS X.9 & X.6 - JBL Creature II - Brother HL2030 - Canon Lide 25
iMac 400DV Indigo - 256MO de ram - DD 80GO - MacOS X.3.9 + 9.2.2
PB 190/66 - RAM 8MO - DD 500MO - system 7.6.1 - CompactFlash en PCMCIA 128MO
iPod nano G3

SynchroAS, FanworOSX et d'autres sur MacNiaque.free.fr
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 utilisateur(s) sur ce sujet (1 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :

 



Nous sommes le : 26th April 2024 - 21:39