mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Added warning if custom class or name comes back nil.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23128 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6c4dab7c20
commit
fc17434efb
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-07-05 00:02 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormNibWrapperLoader.m: Added check to prevent error
|
||||
if customclass or name comes back nil.
|
||||
|
||||
2006-07-03 17:18 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormNibWrapperLoader.m: Remove category for NSView
|
||||
|
|
|
@ -249,7 +249,11 @@
|
|||
{
|
||||
NSString *name = [document nameForObject: o];
|
||||
NSString *customClass = NSMapGet(classes, o);
|
||||
[classManager setCustomClass: customClass forName: name];
|
||||
if(name != nil && customClass != nil)
|
||||
{
|
||||
NSLog(@"Name or class is nil.");
|
||||
[classManager setCustomClass: customClass forName: name];
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue