mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Completely ignore categories in the load bundle callback
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12793 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5c8aac71b4
commit
0cb3dfc684
1 changed files with 11 additions and 8 deletions
|
@ -386,20 +386,23 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
|||
{
|
||||
NSCAssert(_loadingBundle, NSInternalInconsistencyException);
|
||||
|
||||
/* We never record categories - if this is a category, just do nothing. */
|
||||
if (theCategory != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* Don't store the internal NSFramework_xxx class into the list of
|
||||
bundle classes. */
|
||||
if (strlen (theClass->name) > 12
|
||||
&& !strncmp("NSFramework_", theClass->name, 12))
|
||||
if (strlen (theClass->name) > 12 && !strncmp ("NSFramework_",
|
||||
theClass->name, 12))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* Store classes, but don't store categories */
|
||||
if (theCategory == 0)
|
||||
{
|
||||
[(NSMutableArray *)[_loadingBundle _bundleClasses] addObject:
|
||||
[NSValue valueWithNonretainedObject: (id)theClass]];
|
||||
}
|
||||
/* Store classes (but don't store categories) */
|
||||
[(NSMutableArray *)[_loadingBundle _bundleClasses] addObject:
|
||||
[NSValue valueWithNonretainedObject: (id)theClass]];
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue