• 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: WTF is happening?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WTF is happening?


  • Subject: Re: WTF is happening?
  • From: David Duncan <email@hidden>
  • Date: Mon, 15 Dec 2014 10:09:04 -0800

> On Dec 15, 2014, at 9:59 AM, Maxthon Chan <email@hidden> wrote:
>
> I do own the entire SubtitleKit framework but the problem is I want it allow loading and unloading format plugins without restarting the host application. This library only have one internal parser for basic SubRip format and plugins are used for styled SubRip, Multi-track SubRip, SubStation Alpha and other formats.


You can post a notification when a format plugin loads (aka registers itself) for those that are interested in knowing that new formats are available.

As for unloading, unloading Objective-C code is generally considered difficult at best, especially since it is often hard to control whom is referencing any content in the binary (and where once you’ve unloaded that bundle anyone referencing that code will crash).

Overall the simplest solution seems to be that your SubtitleKit framework provides a method for loading these format plugins and does the registration itself. Your users always use that method and you don’t have any of these problems.
--
David Duncan

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Re: WTF is happening? (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Apple Events not being handled during UI tracking
  • Next by Date: Re: WTF is happening?
  • Previous by thread: Re: WTF is happening?
  • Next by thread: Re: WTF is happening?
  • Index(es):
    • Date
    • Thread