View Single Post
Old 01-26-2008, 11:13 PM   #6
iamgnat
CarFrontEnd Creator
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Posts: 845
1.0a9 Plugin API additions

The 1.0a9 release adds a new method you can call from the PluginManager, and two new optional methods your plugin can support.

Firstly I have added - (NSWindow *) mainWindow to allow you to get the pointer to the main CarFrontEnd plugin. Since the -mainWindow of NSApplication method does not work in full screen mode (actually it's the process of designating the main window vs trying to retrieve it), I have added this method so that you can get the handle to the primary window even if your NSView is currently not in it (e.g. in your -contentViewForSize: method).

Next I have added support for two additional methods to let your plugin know more about where we are in the process of display or removing your view from the content area.

The first is - (void) viewWasMadeVisible which will be sent to your plugin (if you've defined it) after your NSView (from -contentViewForSize:) has been made the current content.

The second is - (BOOL) viewWillBeRemovedFromView which will be sent just before your view is removed from the content area. Remember that the -removePluginFromView happens after the view has already been removed.

Let me know if you have any questions.

-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline   Reply With Quote