| Line 217... |
Line 217... |
| 217 |
if (!prefPane && pluginBundle) {
|
217 |
if (!prefPane && pluginBundle) {
|
| 218 |
// load bundle nib file
|
218 |
// load bundle nib file
|
| 219 |
NSString* pluginPrincipalClass = [pluginBundle objectForInfoDictionaryKey:NSPrincipalClassKey];
|
219 |
NSString* pluginPrincipalClass = [pluginBundle objectForInfoDictionaryKey:NSPrincipalClassKey];
|
| 220 |
Class pluginClass = [pluginBundle classNamed:pluginPrincipalClass];
|
220 |
Class pluginClass = [pluginBundle classNamed:pluginPrincipalClass];
|
| 221 |
NSObject <AMPrefPaneProtocol>* newPrefPane = nil;
|
221 |
NSObject <AMPrefPaneProtocol>* newPrefPane = nil;
|
| 222 |
if (newPrefPane = [[[pluginClass alloc] initWithBundle:pluginBundle] autorelease]) {
|
222 |
if ((newPrefPane = [[[pluginClass alloc] initWithBundle:pluginBundle] autorelease])) {
|
| 223 |
[self setPrefPane:newPrefPane];
|
223 |
[self setPrefPane:newPrefPane];
|
| 224 |
if ([prefPane respondsToSelector:@selector(loadMainView)])
|
224 |
if ([prefPane respondsToSelector:@selector(loadMainView)])
|
| 225 |
[prefPane loadMainView];
|
225 |
[prefPane loadMainView];
|
| 226 |
}
|
226 |
}
|
| 227 |
}
|
227 |
}
|