Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Shut up deprecation warning.

  • Loading branch information...
commit 6c28639d03b0f5aab352ba86675de7046509d502 1 parent 98ffee3
@uliwitness authored
Showing with 4 additions and 7 deletions.
  1. +4 −7 UKNibOwner.m
View
11 UKNibOwner.m
@@ -59,19 +59,16 @@ -(id) initWithNibName: (NSString*)nibName owner: (id)owner
{
if( (self = [super init]) )
{
- topLevelObjects = [[NSMutableArray alloc] init];
- NSDictionary* ent = [NSDictionary dictionaryWithObjectsAndKeys:
- owner, @"NSOwner",
- topLevelObjects, @"NSTopLevelObjects",
- nil];
NSBundle* mainB = [NSBundle bundleForClass: [self class]];
if( nibName )
- [mainB loadNibFile: nibName externalNameTable: ent withZone: [self zone]]; // We're responsible for releasing the top-level objects in the NIB (our view, right now).
+ {
+ [mainB loadNibNamed: nibName owner: owner topLevelObjects: &topLevelObjects];
+ }
if( nibName && [topLevelObjects count] == 0 )
{
mainB = [NSBundle mainBundle];
if( nibName )
- [mainB loadNibFile: nibName externalNameTable: ent withZone: [self zone]]; // We're responsible for releasing the top-level objects in the NIB (our view, right now).
+ [mainB loadNibNamed: nibName owner: owner topLevelObjects: &topLevelObjects];
}
if( nibName && [topLevelObjects count] == 0 )
{
Please sign in to comment.
Something went wrong with that request. Please try again.