Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

satyam90

macrumors regular
Original poster
Jul 30, 2007
242
0
Bangalore, India
Hi, I am newbie in XCode programming. I am trying to learn how to create plugins for an application. Thereotically I understood how to create plugins.
I have gone thru copule of websites lilke http://cocoadevcentral.com/articles/000068.php and http://developer.apple.com/documentation/cocoa/conceptual/loadingcode/concepts/plugins.html
I ended up in confusion where to add the code. I couldn't trace it up.

Can any body send me some simple application or link to the plugin applications where I can easily understand? Please help me !!!!!!!!!!
 

yeroen

macrumors 6502a
Mar 8, 2007
944
2
Cambridge, MA
For which applications do you want to create plugins? There are as many different ways to write plugins as there are applications.

The apple developer article you linked to discussed creating plugin architectures for applications and is meant for the application developer; this is quite distinct from writing the plugins themselves.
 

satyam90

macrumors regular
Original poster
Jul 30, 2007
242
0
Bangalore, India
I am not able to understand at all from where to start coding to create plugins.

I am not trying to create plug-ins for already available applications.
I am trying to learn how to create an application and some plugins that I can interact from my application. And I want to be a good application developer.

I am using XCode tool, Obj C and cocoa framework.
 

Cromulent

macrumors 604
Oct 2, 2006
6,812
1,100
The Land of Hope and Glory
I am not able to understand at all from where to start coding to create plugins.

I am not trying to create plug-ins for already available applications.
I am trying to learn how to create an application and some plugins that I can interact from my application. And I want to be a good application developer.

I am using XCode tool, Obj C and cocoa framework.

Which applications though? Each application has a different plug-in API. If you give us some specific information it would help.
 

satyam90

macrumors regular
Original poster
Jul 30, 2007
242
0
Bangalore, India
Basically I want to learn how to code a plugin.
What I am doing is creating an application where it will show a dialot that asks for a text file path. Then it has to pass the path info to plugin, where plugin will display info related to the file like, number of lines, number of words, file creation date etc.
 

Soulstorm

macrumors 68000
Feb 1, 2005
1,887
1
Basically I want to learn how to code a plugin.
What I am doing is creating an application where it will show a dialot that asks for a text file path. Then it has to pass the path info to plugin, where plugin will display info related to the file like, number of lines, number of words, file creation date etc.

The reason you are getting so vague answers is because you are asking the wrong questions.

There is no standard way of knowing how to code a plugin. A plugin is coded by taking advantage of certain features of an application. That means that the application must be coded in a way that it leaves many possibilities for extension to 3rd party developers.

In order to make an application ready to accept plugins, you must first write the application itself. You will need to invent a language yourself, or at least create global variables, classes and methods that a developer can call from your application. In other words, you will need to create an API for your application, and that's not an easy task.

You clearly don't know how difficult it is. Build your application first, and then, you will have a better idea on how to create an API that can access its low level functions and use them for plugin development.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.