• 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: Plugin design question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plugin design question


  • Subject: Re: Plugin design question
  • From: Brent Gulanowski <email@hidden>
  • Date: Wed, 11 Sep 2002 22:44:12 -0400

On Wednesday, September 11, 2002, at 12:08 PM, Drew McCormack wrote:

I want to make a modular application that utilizes plugins as much as possible. Each plugin will basically be a filter, which acts on a model (data) object. The model objects must be in the main application, but will also need to be accessed within the plugins (of course). My question is: how do I incorporate the model classes into the plugin?

I thought it was a feature of Objective-C that the plugin wouldn't have to have any compile-time knowledge of the model classes unless you were calling factory methods. You say that the model objects are owned by the main application, so I take it that you won't be creating instances in the plugin. So why not just use the dynamic features and send the messages you want to the model objects? I was under the impression that that would just work.

If I'm missing something then I hope someone will explain it to me.

Brent
_______________________________________________
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: 
 >Plugin design question (From: Drew McCormack <email@hidden>)

  • Prev by Date: Re: Final round with NSTIFFCompressionCCITTFAX3
  • Next by Date: Re: [newbie] NSString code so it won't leak
  • Previous by thread: Re: Plugin design question
  • Next by thread: Formatter Trouble
  • Index(es):
    • Date
    • Thread