mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
2004-11-30 Matt Rice <ratmice@yahoo.com>
* Source/NSBundle.m (-principalClass): If the class specified in NSPrincipalClass key is not found return the first class found. * Headers/Foundation/NSBundle.h (-principalClass): Document the above. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20401 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
753df57a03
commit
652609e55d
3 changed files with 11 additions and 4 deletions
|
@ -1077,7 +1077,8 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
|||
{
|
||||
_principalClass = NSClassFromString(class_name);
|
||||
}
|
||||
else if ([_bundleClasses count])
|
||||
|
||||
if (!_principalClass && [_bundleClasses count])
|
||||
{
|
||||
_principalClass = [[_bundleClasses objectAtIndex: 0]
|
||||
nonretainedObjectValue];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue